473,663 Members | 2,933 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_em ail" "two"
}

The PHP mailer:
#!/bin/php

<?php

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

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

require("class. phpmailer.php") ;
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "smtp.embarqmai l.com"; // SMTP server
$mail->FromName = "Dave Kelly";
$mail->From = "da*********@em barqmail.com";
$mail->AddAddress(" {$_SERVER['argv'][1]}");
if($send_report _flag != 0 ) {
$mail->AddAttachment( $php_file_attac hment);
}
$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*********@emb arqmail.com
I get this error message"
Message was not sent Mailer Error: Language string failed to load:
recipients_fail edsc******@hugh es.net
Message was not sent Mailer Error: Language string failed to load:
recipients_fail edhj*******@mai l.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 26361
..oO(Dave Kelly)
>If you need them:
class.phpmaile r.php
class.stmp.p hp
are available here.
http://phpmailer.sourceforge.net/

[...]

I get this error message"
Message was not sent Mailer Error: Language string failed to load:
re************ ***********@hug hes.net
Message was not sent Mailer Error: Language string failed to load:
re************ ************@ma il.com
Message has been sent
The error message "Language string ..." is shown if the mailer can't
find the requested string ("recipients_fa iled" 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.de wrote:
ssage has been sent
>
The error message "Language string ..." is shown if the mailer can't
find the requested string ("recipients_fa iled" 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.de wrote:
>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.de wrote:
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.s ynacor.com says EHLO to 65.40.206.9:154 50
250-XDUMPCONTEXT
250-8BITMIME
250-AUTH=LOGIN
250-AUTH LOGIN
250-PIPELINING
250-ENHANCEDSTATUSC ODES
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*********@em barqmail.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.de wrote:
>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.s ynacor.com says EHLO to 65.40.206.9:154 50
250-XDUMPCONTEXT
250-8BITMIME
250-AUTH=LOGIN
250-AUTH LOGIN
250-PIPELINING
250-ENHANCEDSTATUSC ODES
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*********@em barqmail.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*******@attgl obal.net
=============== ===

Nov 5 '07 #6
Dave Kelly <da*********@em barqmail.comwri tes:
I inserted:
$mail->Username = "da*********@em barqmail.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
4575
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) from Microfost MSDN Library for my project "validateXML". When I did "Build" on my project, I got the following fatal error C1010: c:\Documents and Settings\SHC\My Documents\Visual Studio Projects\valoidateDOM\valoidateDOM.cpp(273): fatal error...
1
7747
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) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information
0
1560
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 (GetModuleHandle failed with error -2147024896). Here is the stack trace:
0
3138
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. --------------------- Load report failed. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information
4
6599
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 send, which should fail if the return address is not valid, but I'm still getting the junk. The block looks like this: Set Mailer = Server.CreateObject("SMTPsvg.Mailer") Mailer.RemoteHost = "smtp.xxx.com" Mailer.FromName =...
0
2707
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 like below: Dundas.Mailer.1 error '80004005' The DATA command failed. I've checked all the recepients' email adresses and they all valid. SO, kindly help me to solve this kind error. I really appreciate ur help.
17
4875
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 Microsoft .Net 1.1 & 2.0 installed. How do I remedy this error? //Error below Server Application Unavailable The web application you are attempting to access on this web server is
1
1798
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. -------------------------------------------------------------------------------- Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKeyconfiguration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
0
3210
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 load due to error 0xC0011008 "Error loading from XML. No further detailed error information can be specified for this problem because no Events object was passed where detailed error information can be stored.". This occurs when CPackage::LoadFromXML...
0
8436
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8858
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8548
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8634
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6186
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5657
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4182
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4349
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1757
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.