Advertisement

03.03.2005 at 02:42AM PST, ID: 21336051
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

PHP Mailer Error: Message was not sent Mailer Error: Language string failed to load: recipients_failed

Asked by webpolsol in PHP for Windows

Tags: , , , ,

Hi,

We are running PHP through IIS 6 on a Windows 2003 server, we have recently closed anonymous access to close an open relay, we've then found out that you need to authenticate your php emails in order for them to send.

now i've setup phpmailer as follows:

<CODE>

require("class.phpmailer.php");

$mail = new PHPMailer();
$message = $this->body;

$mail->IsSMTP();        
$mail->Host     = "<REMOVED>";
$mail->SMTPAuth = true;    
$mail->Username = "<REMOVED>";
$mail->Password = "<REMOVED>";

$mail->From     = "website@website.com";
$mail->FromName = "";
$mail->AddAddress("Address of Client","");
$mail->AddAddress("");
$mail->AddCC("");  
$mail->AddReplyTo("","");

$mail->WordWrap = 10000;                              
$mail->AddAttachment("");      
$mail->AddAttachment("");
$mail->IsHTML(true);                              

$mail->Subject  =  "Website Reply";
$mail->Body     =  "$message";
$mail->AltBody  =  "";

if(!$mail->Send())
{
   echo "Message was not sent <p>";
   echo "Mailer Error: " . $mail->ErrorInfo;
   exit;
}

echo "</br></br></br></br><div align=\"center\"><strong>Thankyou for submitting an Enquiry to <REMOVED></br>Your enquiry has been passed on to one of our consultants </br> Who will contact you shortly. </br></br> <REMOVED></strong></div><div align=\"center\"></br><form name=\"form1\" method=\"post\" action=\"thanks.html\"><input type=\"submit\" name=\"Submit\" value=\"Back to Riversdale Mortgage Services\"></form></div><SCRIPT LANGUAGE=\"JavaScript\">window.location=\"thanks.html\"</script>";
            
}

</CODE>

$message variable in the body line is equal to a hidden field located on the form page which is then posted into the email.

i am pulling in all the data from a div class located around the whole form,

<div id="emaildata">
FORM CONTENT
</div>

I seemed to have stopped the authenticated error message that was being displayed but,

Now when i try to submit the form i get the following error:

Message was not sent.
Mailer Error: Language string failed to load: recipients_failed,

but i've copied the class.phpmailer.php & class.smtp.php & the lang_en.php to the c:\php\include folder.

i've somehow been able to get it working but every 2 out of 5 emails or so will come out blank? the rest seem to work fine.

i'm pretty sure its not the code, but rather something i havn't setup up in IIS or PHP ?

Some help would be greatly appreciated.

IanStart Free Trial
 
Keywords: PHP Mailer Error: Message was not s…
 
Loading Advertisement...
 
[+][-]03.03.2005 at 03:17AM PST, ID: 13448138

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: PHP for Windows
Tags: failed, string, language, mailer, recipients_failed
Sign Up Now!
Solution Provided By: RQuadling
Participating Experts: 2
Solution Grade: A
 
 
[+][-]03.03.2005 at 03:19AM PST, ID: 13448151

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.03.2005 at 03:44AM PST, ID: 13448279

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.03.2005 at 03:49AM PST, ID: 13448309

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.03.2005 at 03:52AM PST, ID: 13448321

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.03.2005 at 04:12AM PST, ID: 13448417

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.03.2005 at 04:18AM PST, ID: 13448452

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.03.2005 at 04:28AM PST, ID: 13448514

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.03.2005 at 04:39AM PST, ID: 13448578

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.03.2005 at 05:10AM PST, ID: 13448784

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.03.2005 at 05:27AM PST, ID: 13448904

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.03.2005 at 05:42AM PST, ID: 13449023

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.03.2005 at 05:54AM PST, ID: 13449174

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.03.2005 at 06:15AM PST, ID: 13449431

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.03.2005 at 06:22AM PST, ID: 13449523

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.03.2005 at 06:27AM PST, ID: 13449555

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.03.2005 at 07:03AM PST, ID: 13449972

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.09.2005 at 07:35PM PST, ID: 13502851

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32