/    Sign up×
Community /Pin to ProfileBookmark

mail() [function.mail]: SMTP server response: 503 RCPT first

Hi,

I have mail function but when I send it it appears to me as warning message like this

[QUOTE]

Warning: mail() [function.mail]: SMTP server response: 503 RCPT first (#5.5.1) in D:Hosting3181178htmlgoldyBayincludesfunctions.php on line 51

[/QUOTE]

My php coding is like this

[code=php]
$subject = “Notice about reservation cancel”;
$body = “<html>n”;
$body .= “<body style=”font-family:Verdana, Verdana, Geneva, sans-serif; font-size:12px; color:#666666;”>n”;
$body .= “Notice about reservation cancel on Bay Airporter Express Inc”;
$body .= “Your reservation is cancelled
Reservation Number : “.$res_num.””;
$body .= “</body>n”;
$body .= “</html>n”;

$headers = “From: Admin<[email protected]>rn”;
$headers .= “Reply-To: [email protected]”;
$headers .= “Return-Path: [email protected]”;
$headers .= “MIME-Version: 1.0rn”;
$headers .= “Content-type: text/html; charset=iso-8859-1rn”;

mail($email, $subject, $body, $headers);[/code]

If any help would be great!

Cheers!!!

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@MindzaiMar 24.2010 — It may be that your SMTP host requires authentication. Make sure you have provided it in php.ini (or adjust the mail server accordingly).
×

Success!

Help @jkhavefun 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,
)...