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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hocky_nutty
Forum Newbie
Posts: 3
Joined: Thu Jun 26, 2008 11:20 am

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

Post 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?
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

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

Post by califdon »

You may need to restart Apache to re-read the php.ini file.
Post Reply