By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,851 Members | 1,121 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,851 IT Pros & Developers. It's quick & easy.

Mailer Error: Language string failed to load

P: n/a
Sorry for the long post, it is easier to discard information than
to have to wait for it to arrive.

So here goes:

This code worked perfectly when I was an Earthlink customer. Sprint
decided not to pardner with Earthlink and create their own IP. Since
then everything email has been broke.

Sprint/Embarq is the only copper wire DSL provider where I live.

If you need them:
class.phpmailer.php
class.stmp.php
are available here.
http://phpmailer.sourceforge.net/

I use a shell script to read the mailing list and send the
addresses to the php mailer.

#!/bin/bash

main()
{
cat testlist | ( \
while read emailaddr; \
do sendtomember $emailaddr; done \
)

}

PHP_EXEC='php -r'

sendtomember()
{
member_email=$1

php -f mailsender.php "$member_email" "two"
}

The PHP mailer:
#!/bin/php

<?php

if($_SERVER['argv'][2]=="two") {
$filename = 'todayscatch';
$fp = fopen($filename, "r");
$php_file_name = fread($fp, filesize($filename));
fclose($fp);
}

if($_SERVER['argv'][2]=="three") {
$filename = 'no_responce_message';
$fp = fopen($filename, "r");
$php_file_name = fread($fp, filesize($filename));
fclose($fp);
}

require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "smtp.embarqmail.com"; // SMTP server
$mail->FromName = "Dave Kelly";
$mail->From = "da*********@embarqmail.com";
$mail->AddAddress(" {$_SERVER['argv'][1]}");
if($send_report_flag != 0 ) {
$mail->AddAttachment($php_file_attachment);
}
$mail->Subject = "A message from the TexasFlyFishers email robot";
$mail->Body = $php_file_name;
$mail->WordWrap = 50;

if(!$mail->Send())
{
echo "Message was not sent ";
echo "Mailer Error: " . $mail->ErrorInfo;
}
else
{
echo "Message has been sent";
}
?>

A list of addresses might look like this.
sc******@hughes.net
hj*******@mail.com
da*********@embarqmail.com
I get this error message"
Message was not sent Mailer Error: Language string failed to load:
recipients_failedsc******@hughes.net
Message was not sent Mailer Error: Language string failed to load:
recipients_failedhj*******@mail.com
Message has been sent

The message sent was to myself and showed up on my Thunderbird mail
reader.

I googled 'Language string failed to load' and found a lot of listings
with some solutions.
I applied some of those solutions and none seem to correct the
problem.

Anyone have other suggestions to fix this?
TIA
Dave Kelly

Nov 4 '07 #1
Share this Question
Share on Google+
6 Replies


P: n/a
..oO(Dave Kelly)
>If you need them:
class.phpmailer.php
class.stmp.php
are available here.
http://phpmailer.sourceforge.net/

[...]

I get this error message"
Message was not sent Mailer Error: Language string failed to load:
re***********************@hughes.net
Message was not sent Mailer Error: Language string failed to load:
re************************@mail.com
Message has been sent
The error message "Language string ..." is shown if the mailer can't
find the requested string ("recipients_failed" in this case) in his
message files to show a localized error message. Make sure that the
directory '/language' and the message files in it are available on the
server in the phpmailer directory.

The real error is an SMTP thing. Try to enable debug mode in the mailer
to see a more detailed SMTP error message.

Micha
Nov 4 '07 #2

P: n/a
On Nov 4, 1:42 am, Michael Fesser <neti...@gmx.dewrote:
ssage has been sent
>
The error message "Language string ..." is shown if the mailer can't
find the requested string ("recipients_failed" in this case) in his
message files to show a localized error message.
I had gathered this much from reading the google returns. The
'localized error message' is new knowledge.
Make sure that the directory '/language' and the message files in it are available on the
server in the phpmailer directory.
As is the locations requirements for this. Let me clarify in my head
what you are teaching me.
In the past when Earthlink was my IP, I had in a directory on my home
computer where I maintain the website the following:
class.phpmailer.php
class.stmp.php
mailsender.php
testlist (list of email addresses - 1 per line)
todayscatch (the message to send)
language ( directory )

Is this the correct location for the files? My computer. I don't have
access to the Embarq server.
>
The real error is an SMTP thing. Try to enable debug mode in the mailer
to see a more detailed SMTP error message.
I will have to do some research on this and get back to you.
>
Thanks fro you reply.
Dave

Nov 4 '07 #3

P: n/a
..oO(Dave Kelly)
>On Nov 4, 1:42 am, Michael Fesser <neti...@gmx.dewrote:
>Make sure that the directory '/language' and the message files in it are available on the
server in the phpmailer directory.

As is the locations requirements for this. Let me clarify in my head
what you are teaching me.
In the past when Earthlink was my IP, I had in a directory on my home
computer where I maintain the website the following:
class.phpmailer.php
class.stmp.php
mailsender.php
testlist (list of email addresses - 1 per line)
todayscatch (the message to send)
language ( directory )

Is this the correct location for the files? My computer. I don't have
access to the Embarq server.
Looks OK. Does the 'language' directory contain any files? I have 20
files in there.
>The real error is an SMTP thing. Try to enable debug mode in the mailer
to see a more detailed SMTP error message.

I will have to do some research on this and get back to you.
There's a variable $SMTPDebug (or something like that) in the phpmailer
class. Set that to TRUE and see what happens.

Micha
Nov 4 '07 #4

P: n/a
On Nov 4, 11:39 am, Michael Fesser <neti...@gmx.dewrote:
Looks OK. Does the 'language' directory contain any files? I have 20
files in there.
Yes and about the same number.
There's a variable $SMTPDebug (or something like that) in the phpmailer
class. Set that to TRUE and see what happens.
I did as you suggested and that produced a data overload - 1260 lines
of information/data.

I reduced my email list from 7 to 1 entry and that produced 139 lines.

Let me post a few lines and ask a question.
==============+=================

SMTP -FROM SERVER:
250-smtp09.embarq.synacor.com says EHLO to 65.40.206.9:15450
250-XDUMPCONTEXT
250-8BITMIME
250-AUTH=LOGIN
250-AUTH LOGIN
250-PIPELINING
250-ENHANCEDSTATUSCODES
250 STARTTLS
SMTP -get_lines(): $data was ""
SMTP -get_lines(): $str is "250 MAIL FROM accepted
"
SMTP -get_lines(): $data is "250 MAIL FROM accepted
"
SMTP -FROM SERVER:
250 MAIL FROM accepted
SMTP -get_lines(): $data was ""
SMTP -get_lines(): $str is "554 Authentication Failed, must login
"
SMTP -get_lines(): $data is "554 Authentication Failed, must login
"
SMTP -FROM SERVER:
554 Authentication Failed, must login
SMTP -ERROR: RCPT not accepted from server: 554 Authentication
Failed, must login

SMTP -get_lines(): $data was ""
SMTP -get_lines(): $str is "250 RSET OK
"
SMTP -get_lines(): $data is "250 RSET OK
"
SMTP -FROM SERVER:
250 RSET OK
Message was not sent Mailer Error: SMTP Error: The following
recipients failed: sc******@hughes.net
(
)
==============+===================
I inserted:
$mail->Username = "da*********@embarqmail.com";
$mail->Password = "xxxxxxxxxx";

and still got the same errors.

I'm in way over my head and am open to suggestions.
Thanks for taking the time to help me with this.
Dave

Nov 5 '07 #5

P: n/a
Dave Kelly wrote:
On Nov 4, 11:39 am, Michael Fesser <neti...@gmx.dewrote:
>Looks OK. Does the 'language' directory contain any files? I have 20
files in there.
Yes and about the same number.
>There's a variable $SMTPDebug (or something like that) in the phpmailer
class. Set that to TRUE and see what happens.

I did as you suggested and that produced a data overload - 1260 lines
of information/data.

I reduced my email list from 7 to 1 entry and that produced 139 lines.

Let me post a few lines and ask a question.
==============+=================

SMTP -FROM SERVER:
250-smtp09.embarq.synacor.com says EHLO to 65.40.206.9:15450
250-XDUMPCONTEXT
250-8BITMIME
250-AUTH=LOGIN
250-AUTH LOGIN
250-PIPELINING
250-ENHANCEDSTATUSCODES
250 STARTTLS
SMTP -get_lines(): $data was ""
SMTP -get_lines(): $str is "250 MAIL FROM accepted
"
SMTP -get_lines(): $data is "250 MAIL FROM accepted
"
SMTP -FROM SERVER:
250 MAIL FROM accepted
SMTP -get_lines(): $data was ""
SMTP -get_lines(): $str is "554 Authentication Failed, must login
"
SMTP -get_lines(): $data is "554 Authentication Failed, must login
"
SMTP -FROM SERVER:
554 Authentication Failed, must login
SMTP -ERROR: RCPT not accepted from server: 554 Authentication
Failed, must login

SMTP -get_lines(): $data was ""
SMTP -get_lines(): $str is "250 RSET OK
"
SMTP -get_lines(): $data is "250 RSET OK
"
SMTP -FROM SERVER:
250 RSET OK
Message was not sent Mailer Error: SMTP Error: The following
recipients failed: sc******@hughes.net
(
)
==============+===================
I inserted:
$mail->Username = "da*********@embarqmail.com";
$mail->Password = "xxxxxxxxxx";

and still got the same errors.

I'm in way over my head and am open to suggestions.
Thanks for taking the time to help me with this.
Dave

Dave,

You're problem is you must authenticate yourself on this server before
sending email. Sprint evidently does things differently than Earthlink did.

What you need to do is find out how Sprint requires you to authenticate.
For instance, in your email program, do you have a userid and password
to access your smtp server, and if so, do they match what you sent in
your class? This is one way to authenticate.

Another way some ISP's authenticate is to require you to fetch your
email (log into your POP3 account) before sending email.

And there are others less often used.

I'd suggest you contact Sprint if you need to, to find out what kind of
authentication is required. Then check the phpMailer support people -
they know more about their product than anyone else.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Nov 5 '07 #6

P: n/a
Dave Kelly <da*********@embarqmail.comwrites:
I inserted:
$mail->Username = "da*********@embarqmail.com";
$mail->Password = "xxxxxxxxxx";

and still got the same errors.
You also need to set $mail->SMTPAuth to true...
Nov 5 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.