Re: using the PHP4 mail() function in (Newbie)

From: Date: Mon, 25 Jun 2001 09:43:37 +0000
Subject: Re: using the PHP4 mail() function in (Newbie)
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-8015@lists.php.net to get a copy of this message
Result! Changing the mail server did the trick! Many thanks to you and all who replied. Pete "Michael Kelley" <mkelley@nmsu.edu> wrote in message news:3B33D361.2090003@nmsu.edu... > You need to change > SMTP = localhost ; for Win32 only > to > SMTP = MyMailhost.domain.edu ; for Win32 only > > (MyMailHost being your mail service's server -> pop3.hotmail.com) > If you don't have that then you may need to install a mail service of > your own ... > If you need to do that research the archieves I know I've seen a load of > different free mail services and how to install (I didn't have to do > that so I'm not going to try to tell you how to do it ...) > > > Peter Haywood wrote: > > > Any advice on this would be much appreciated: > > > > I am trying to send a simple email. in the php file, i have entered: > > > > <?php > > mail ("myemail@address.com", "This is the Subject", "This is the > > message > > body"); > > ?> > > > > when i load the page, i get the following: > > > > Warning: Server Error in C:\inetpub\wwwroot/php/tests/test.php on line 2 > > test.php being the file containing the PHP mail code > > > > this is the sendmail info in my php.ini file: > > > > [mail function] > > ; For Win32 only. > > SMTP = localhost ; for Win32 only > > > > ; For Win32 only. > > sendmail_from = me@localhost.com ; for Win32 only > > > > > > thanks, > > > > pete > > > -- > > Michael Kelley > mkelley@nmsu.edu > > Programmer/Systems Analyst I > New Mexico State University > Information and Communication Technologies > Work # (505)-646-1374 > P.O. Box 30001 > MSC: 3AT > Las Cruces, NM 88003 > > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#8015) next »