I'm not sure what I did wrong. It was working earlier, but I inadvertantly changed something which made my php script fail to send the mail anymore.
Here is the screen of the page which shows the error:
Thank you for your inquiry
The following information has been sent to the webmaster:
blank user
Phone: 333-444-5555
Mobile: 2
Fax: 2
E-mail: blank@user.com
Web: blank.com
You wrote: here\'s a blank message
--------------------------------------------------------------------------------
Message was not sentMailer Error: Language string failed to load: recipients_failedmyemail@someserver.com
Here is the code related to the mailer:
require("../phpmailer/class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "smtp-relay.someserver.com"; // SMTP server
$mail->From = "me@someserver.com";
$mail->AddAddress ("myemail@someserver.com");
$mail->username = "myusername"; //username on the relay server
$mail->password = "mypassword"; //password on the relay server
$mail->Subject = "data update";
$mail->Body = $myresult;
$mail->WordWrap = 60;
if(!$mail->Send())
{
echo "Message was not sent";
echo "Mailer Error: " . $mail->ErrorInfo;
}
else
{
echo "Message has been sent";
}
Any help is much appreciated.
Linda
Here is the screen of the page which shows the error:
Thank you for your inquiry
The following information has been sent to the webmaster:
blank user
Phone: 333-444-5555
Mobile: 2
Fax: 2
E-mail: blank@user.com
Web: blank.com
You wrote: here\'s a blank message
--------------------------------------------------------------------------------
Message was not sentMailer Error: Language string failed to load: recipients_failedmyemail@someserver.com
Here is the code related to the mailer:
require("../phpmailer/class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "smtp-relay.someserver.com"; // SMTP server
$mail->From = "me@someserver.com";
$mail->AddAddress ("myemail@someserver.com");
$mail->username = "myusername"; //username on the relay server
$mail->password = "mypassword"; //password on the relay server
$mail->Subject = "data update";
$mail->Body = $myresult;
$mail->WordWrap = 60;
if(!$mail->Send())
{
echo "Message was not sent";
echo "Mailer Error: " . $mail->ErrorInfo;
}
else
{
echo "Message has been sent";
}
Any help is much appreciated.
Linda