zfred09 Posted January 6, 2007 Share Posted January 6, 2007 When using phpmailer through a smtp I get this error message: [color=red]Mailer Error: Language string failed to load: recipients_failed[/color]I have searched for at least a couple hours for the solution to this problem, have tried many different fixes and still no result. How do I fix this problem?[code] ini_set("include_path", ".:/path/to/phpmailer/dir"); ini_set("include_path", ".:/path/to/smtp/dir"); ini_set("include_path", ".:/path/to/phpmailer.lang-en/dir"); $mail = new PHPMailer(); $mail->IsSMTP(); // set mailer to use SMTP $mail->Host = "smtp.mydomain.com"; // specify main and backup server $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = "username"; // SMTP username $mail->Password = "pass"; // SMTP password $mail->From = "support@mydomain.com"; $mail->AddAddress("blah@gmail.com"); $mail->Subject = "Blah"; $mail->Body = " Email text"; [/code] Quote Link to comment https://forums.phpfreaks.com/topic/33045-phpmailer-help/ Share on other sites More sharing options...
weknowtheworld Posted January 9, 2007 Share Posted January 9, 2007 This error usually occurs because relaying is not allowed on the SMTP server from the IP address of the web server. Go to the configuration of your SMTP server and turn relaying on for your IP address and try again. Quote Link to comment https://forums.phpfreaks.com/topic/33045-phpmailer-help/#findComment-156625 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.