RE: [PHP-WIN] cannot get mail() to function on IIS5 / Win2000

From: Date: Tue, 11 Jul 2000 14:46:21 +0000
Subject: RE: [PHP-WIN] cannot get mail() to function on IIS5 / Win2000
Groups: php.windows 
Request: Send a blank email to php-windows+get-1038@lists.php.net to get a copy of this message
It appears that you don't have a functioning SMTP server. In the directive SMTP = <SMTP server> <SMTP server> must be a running SMTP server, not just any server. I hope this helps. > -----Original Message----- > From: Sigurd Magnusson [SMTP:phobo@paradise.net.nz] > Sent: Tuesday, July 11, 2000 11:29 AM > To: php-windows@lists.php.net > Subject: [PHP-WIN] cannot get mail() to function on IIS5 / Win2000 > > When I attempt to execute the following code > > > <?php > echo "Sending Email..."; > $emailaddress = "phobo@paradise.net.nz"; > $subject = "php emailing demo"; > $message = "Welcome to the demo\nLine Two\n\nLine Four etc\n"; > $headers = "From: automatedform@hehe.com\n"; > > mail($emailaddress,$subject,$message,$headers); > echo "...done"; > ?> > > > I get no response from IE5. After about two minutes i see "Sending > Email..." > and then IE5 gives up. I assume that mail() is caught up doing something > and > timesout and finally sends the echo to the client. I have tried playing > with > php.ini as follows, but neither works > > > SMTP = localhost > sendmail_from = me@localhost.com > > and .. > > SMTP = smtp.paradise.net.nz > sendmail_from = phobo@paradise.net.nz > > Do I need to set up a SMTP server or something else with PHP ? are there > IIS5 setting which I need to alter? > > I have a firewall I use but out of desperation I disabled it to see if > that > was the problem, and it wasn't... > > Any replies would be appreciated incredibly! > > The php file is up at > http://phobo.dyndns.org/phptestbed/email/email.php > for > testing. > > Thanks,SIGGY (phobo@paradise.net.nz) > > > -- > 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 (#1038) next »