...

View Full Version : PHP Mail() Function Not Working



Emkay
11-03-2009, 07:40 PM
I've already set the SMTP server and port, both which work perfectly fine with my email client, why isn't it working? Whenever I try to send mail using the function I get the following error:


Warning: mail() [function.mail]: Failed to connect to mailserver at "smtp1@bethere.co.uk" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\admin\create-user.php on line 149

Those are the correct settings, I use them with my email client :confused:

tomws
11-03-2009, 08:45 PM
"smtp1@bethere.co.uk" is not the name of a mail server or any other server. Email addresses use the @ sign. Server names do not.

Emkay
11-03-2009, 10:51 PM
"smtp1@bethere.co.uk" is not the name of a mail server or any other server. Email addresses use the @ sign. Server names do not.

Argh stupid me. Changed the @ symbol into a period and the problem is fixed...thanks for that lol. :rolleyes:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum