My script works fine normally but there is one email that always returns a warning. Can anyone tell me why?
[code=html]Warning: mail() [function.mail]: SMTP server response: 550 Insufficient electricity in /home/httpd/vhosts/toxiclinks.com/httpdocs/register.php on line 302[/code]
@NogDogDec 17.2005 — #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: [code=php] $headers = 'From: [email protected]' . "rn" . 'Reply-To: [email protected]' . "rn" . 'X-Mailer: PHP/' . phpversion(); [/code] $headers will be the 4th parameter to your mail() function call.
@bokehDec 17.2005 — #Warning: mail() [function.mail]: SMTP server response: 550 [B]Insufficient electricity[/B] in /home/httpd/vhosts/toxiclinks.com/httpdocs/register.php on line 302[/QUOTE]Very 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.