Click to See Complete Forum and Search --> : windows mail setup problems


Anon
02-19-2002, 07:36 PM
I am trying to setup my server so i can use the mail() function.

i went to the php.ini file and setup the following line.

SMTP = mail.myhost.com

of course "myhost" is my working mail server.

when i run the mail script below,, i get the error before that.

mail("me@myhost.com", "My Subject", "Messages");

Warning: Failed to Connect in d:\inetpub\www\mail.php on line 2

can anyone help me or let me know what may be happening?

-mike