Page 1 of 1

simple, probably common, MAIL() problem with php.

Posted: Wed Jul 02, 2008 6:27 pm
by hocky_nutty
Hello, I have a login site, where when a user registers, they get a confirmation email. But right now, they are just getting this error.

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\kyle\testing\petcatalog\login.php on line 311

But, I DID change the smtp to smtp.gmail.com and the port to 465 and the email to use to kyle@kylethewizkid.com . But that did not change a thing, oddly enough, the same error appeared (with the port still at 25 and the SMTP at localhost)

Any ideas?

Re: simple, probably common, MAIL() problem with php.

Posted: Wed Jul 02, 2008 7:08 pm
by califdon
You may need to restart Apache to re-read the php.ini file.