473,320 Members | 2,158 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,320 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 26267
..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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.