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: [email protected] what seems to be the problem..?? 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? 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('[email protected]'); $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"; ?> 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('[email protected]'); replace with $mail->AddAddress("[email protected]"); 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. 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: [email protected] i've echo a variable in that part of mistake(in it's superclass) and that error message occur. Link to comment https://forums.phpfreaks.com/topic/44649-phpmailer-problem/#findComment-216855 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.