473,388 Members | 995 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Mailer Error: Language string failed to load

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
6 26294
..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
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
..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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: SHC | last post by:
Hi all, I have a VC++ .NET 2003 - Windows XP Pro PC. I created a Win32 console application in my VC++ .NET 2003 and copied validateDOM.cpp, books.xml and books.xsd (see the attached files below)...
1
by: Marco Gerlach | last post by:
Hello, on one of our customers servers we get following error on first ASPX-page: An error occurred while try to load the string resources (GetModuleHandle failed with error -2147023888) ...
0
by: Bryan Poteet | last post by:
Hello, Not sure where to start with this error. The application uses Forms as the authentication Mode and AD for user login. An error occurred while try to load the string resources...
0
by: Simon | last post by:
Hi I try to open a CR report file located on the network path from a web form developed with vs2003 and CR for Visual Studio, but the Load method of ReportDocument object always return error. ...
4
by: =?Utf-8?B?TWlrZSBI?= | last post by:
I'm using a block of ASP to allow a user to send a form via e-mail. However, someone keeps sending me spam through this form and they're using a bogus return address. I'm testing for a successful...
0
by: askzda | last post by:
Hi, Can somebody pls help to solve above problem. I have used dundas mailer for my mailing part in my asp script, but the an error occured during sending the mail. Error that is prompted out just...
17
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
I have set up a virtual directory using IIS. Whenever, I load a web page of type .htm, I have no problem. Whenever I run a .aspx page I get the statement below. I am running on XP Pro, both...
1
by: Nathan Sokalski | last post by:
When I click after about 15 minutes on a page I wrote I recieve the following error: Server Error in '/' Application....
0
by: pinky22 | last post by:
I am calling SSIS package from a .Net windows UI. Both SSIS & .Net app are created in 2008. The SSIS package is stored in file system. When I ran .Net app I got error- The package failed to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.