/    Sign up×
Community /Pin to ProfileBookmark

im getting this error when i run this script.

Message was not sentMailer Error: Language string failed to load: recipients_failedvin800

why am i getting this. this is my script

require(“class.phpmailer.php”);
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = “smtp-server.nyc.rr.com”; // SMTP server
$mail->From = “[email protected]“;
$mail->Subject = “look, it is a HTML message with an attachment”;
$mail->Body = “hi nn this message uses html entities !”;
$mail->AddAddress(“[email protected]“);
//$mail->AddAddress($_POST[“email”]);
if(!$mail->Send())
{

echo “Message was not sent”;
echo “Mailer Error: ” . $mail->ErrorInfo;
}
else
{
echo “Message has been sent”;
}
?>

any suggestions?

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@keko2005authorAug 17.2005 — nevermind, got it, thanks
Copy linkTweet thisAlerts:
@webstuffAug 17.2005 — You posted to say you fixed it but you dont offer up the soloution...???

any chance you can post and explain, IM looking for an email function and I am new to PHP (like today) and it is helpful alround if you can be a little more thoughtful and atleast post the corrected version so we all can learn.
Copy linkTweet thisAlerts:
@keko2005authorAug 18.2005 — what are u looking to do, just send email, u can just use mail("email@domain","subject","body"); this will work fine for just sending email, i was using the other function to do something a little more advanced i guess.
×

Success!

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