|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 = "daveekelly1@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. scentual@hughes.net hjcrofton@mail.com daveekelly1@embarqmail.com I get this error message" Message was not sent Mailer Error: Language string failed to load: recipients_failedscentual@hughes.net Message was not sent Mailer Error: Language string failed to load: recipients_failedhjcrofton@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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
..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: >recipients_failedscentual@hughes.net >Message was not sent Mailer Error: Language string failed to load: >recipients_failedhjcrofton@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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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_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 |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
..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 |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
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.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: scentual@hughes.net ( ) ==============+=================== I inserted: $mail->Username = "daveekelly1@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 me with this. Dave |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
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.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: scentual@hughes.net > ( > ) > ==============+=================== > I inserted: > $mail->Username = "daveekelly1@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 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. jstucklex@attglobal.net ================== |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
Dave Kelly <daveekelly1@embarqmail.com> writes:
> I inserted: > $mail->Username = "daveekelly1@embarqmail.com"; > $mail->Password = "xxxxxxxxxx"; > > and still got the same errors. You also need to set $mail->SMTPAuth to true... |
|
![]() |
| Outils de la discussion | |
|
|