Do not use on any
shared computer
September 6, 2008 10:10am pdt
 
[x]
Attachment Details

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

Tags: php, php, firefox, internet explorer, localhost
I have created a script to work between two programs we have. The first creates an e-mail with phone numbers followed by the txt message, in the body.

the script i have written then reads the mailbox the emails are sent to and extracts the data. The txts are then sent to our txt server again by e-mail.

The format of the email must be,
To field: phonenumber@send.sms
body: txt message.

my script creats this layout without problems. The error comes from the script to send the txt by email (please see the code below).

if i send a message to support@nwmservices.co.uk from the script, it's fine. As soon as i change it to phonenumber@send.sms it gives the following error.

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

i have also tried it with a name just incase it didn't like the phone number, but i still get,

Message was not sent.Mailer error: Language string failed to load: recipients_failedSupport@send.sms

send.sms uses a conector within exchnage as send.sms is not a valid domain on the internet.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "192.168.16.2"; // SMTP server
$mail->From = "matt@cowleyit.co.uk";
$mail->AddAddress("$to");
 
$mail->Subject = "Autoskills txt";
$mail->Body = $body;
 
 
if(!$mail->Send())
{
   echo 'Message was not sent.';
   echo 'Mailer error: ' . $mail->ErrorInfo;
}
else
{
   echo 'Message has been sent.';
}
Start your free trial to view this solution
Question Stats
Zone: Web Development
Question Asked By: vernoncowley
Question Asked On: 05.15.2008
Participating Experts: 1
Points: 500
Views: 0
Translate:
Loading Advertisement...
 
[+][-]Expert Comment by fibo
Expert Comment by fibo:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080723-EE-VQP-34 / EE_QW_2_20070628