sebastiano Posted March 28, 2007 Share Posted March 28, 2007 i've tried to send email using phpmailer. but i've got error message : Message was not sent Mailer Error: Language string failed to load: recipients_failedsebastian_oscar_w@hotmail.com what seems to be the problem..?? Quote Link to comment https://forums.phpfreaks.com/topic/44649-phpmailer-problem/ Share on other sites More sharing options...
trq Posted March 28, 2007 Share Posted March 28, 2007 What is phpmailer? Its not part of php. Can we see some relevent code? Quote Link to comment https://forums.phpfreaks.com/topic/44649-phpmailer-problem/#findComment-216818 Share on other sites More sharing options...
sebastiano Posted March 28, 2007 Author Share Posted March 28, 2007 phpmailer is a php program created to send email via your isp smtp server. my code is...... <?php require("phpmailer/class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); // send via SMTP $mail->Host = "smtp.telkom.net"; // SMTP servers $mail->SMTPAuth = true; // turn on SMTP authentication $mail->AddAddress('sebastian_oscar_w@hotmail.com'); $mail->IsHTML(true); // send as HTML $mail->Subject = "Here is the subject"; $mail->Body = "This is the <b>HTML body</b>"; $mail->AltBody = "This is the text-only body"; if(!$mail->Send()) { echo "Message was not sent <p>"; echo "Mailer Error: " . $mail->ErrorInfo; exit; } echo "Message has been sent"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/44649-phpmailer-problem/#findComment-216821 Share on other sites More sharing options...
per1os Posted March 28, 2007 Share Posted March 28, 2007 Does phpmailer have a support forum? Really PHPFreaks is for help with code that you are creating. $mail->AddAddress('sebastian_oscar_w@hotmail.com'); replace with $mail->AddAddress("sebastian_oscar_w@hotmail.com"); see if that works Without any CORE code this is almost impossible to diagnose. Since it said the "string" failed to load I am assuming that maybe single quotes and double quotes may be an issue, I do not know why as I do not have any code to look at. Get some code or goto the creators website and ask on their forum. Quote Link to comment https://forums.phpfreaks.com/topic/44649-phpmailer-problem/#findComment-216832 Share on other sites More sharing options...
sebastiano Posted March 28, 2007 Author Share Posted March 28, 2007 well, it does have a core code, i can give it to you via email if you want. but after i try to understand the core code(which is realy frustating for me), i've notice that maybe the real problem is : 550 Host localhost is blocked because your computer was used to send SPAMs. Message was not sent Mailer Error: Language string failed to load: recipients_failedsebastian_oscar_w@hotmail.com i've echo a variable in that part of mistake(in it's superclass) and that error message occur. Quote Link to comment https://forums.phpfreaks.com/topic/44649-phpmailer-problem/#findComment-216855 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.