/    Sign up×
Community /Pin to ProfileBookmark

Error sending mail()

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]

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@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.
Copy linkTweet thisAlerts:
@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.
Copy linkTweet thisAlerts:
@chongDec 18.2005 — maybe u need to attach 2 'AA' batteries to your mail...

juz kiddin...
×

Success!

Help @AJAX spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...