Click to See Complete Forum and Search --> : Error sending mail()


AJAX
12-17-2005, 03:20 PM
My script works fine normally but there is one email that always returns a warning. Can anyone tell me why?

Warning: mail() [function.mail]: SMTP server response: 550 Insufficient electricity in /home/httpd/vhosts/toxiclinks.com/httpdocs/register.php on line 302

NogDog
12-17-2005, 04:03 PM
That response number indicates a relaying error. This could be due to your server not being configured to allow relaying, in which case you'll need to talk to your web host admin. I believe it can also occur if you do not have all the "additional headers" that your SMTP program requires. Try adding the following to your headers if you haven't already (changing the email addresses as appropriate, of course:

$headers = 'From: webmaster@example.com' . "\r\n" .
'Reply-To: webmaster@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();

$headers will be the 4th parameter to your mail() function call.

bokeh
12-17-2005, 04:23 PM
Warning: mail() [function.mail]: SMTP server response: 550 Insufficient electricity in /home/httpd/vhosts/toxiclinks.com/httpdocs/register.php on line 302Very funny! Assuming this is not a wind up, the person that set up the remote mail server had a sense of humour. By the way 550 is user unknown.

chong
12-18-2005, 12:40 AM
maybe u need to attach 2 'AA' batteries to your mail...

juz kiddin...