Re: [PHP] Broken pipes, time outs, PHP, and mail

2010-09-10 Thread Dave M G
Peter, Bob, Thank you for replying. After a few days testing, I set up an error handler for when messages don't get sent. I started to see an error saying "Language String failed to load", which seems to be particular to the PHPmailer scripts I am using. Long story short, after some searchin

RE: [PHP] Broken pipes, time outs, PHP, and mail

2010-09-09 Thread Bob McConnell
From: Dave M G >> There is one other possibility. According to the RFCs, the standard line >> ending for email is CRLF. Make sure your system is sending both >> characters after each line. There is a slim chance the server is cutting >> you off after some number of bytes if you are only sending a

Re: [PHP] Broken pipes, time outs, PHP, and mail

2010-09-08 Thread Dave M G
Ash, Bob, Thank you for replying. There is one other possibility. According to the RFCs, the standard line ending for email is CRLF. Make sure your system is sending both characters after each line. There is a slim chance the server is cutting you off after some number of bytes if you are only

RE: Re: [PHP] Broken pipes, time outs, PHP, and mail

2010-09-08 Thread Bob McConnell
From: a...@ashleysheridan.co.uk > Could it be that there are connection limits on the remote server? > > Thanks, > Ash Only if you are opening a new connection for each message. Any decent SMTP client should be able to send multiple messages over a single connection. You could capture the traff

Re: [PHP] Broken pipes, time outs, PHP, and mail

2010-09-08 Thread a...@ashleysheridan.co.uk
In order to help we really need to have a look at the code in question. You say the code is derived from another class you downloaded. Are you able to post the important bits of it in an email, or put it all on a pastebin? Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - Fr

Re: [PHP] Broken pipes, time outs, PHP, and mail

2010-09-08 Thread Dave M G
Bob, Thank you for replying. Your code should be able to re-open the connection at this point and resend the message that triggered the error. Then resume working on the rest of your list. Unfortunately, it seems that this is not happening. The loop that sends out individual mail dies, and t

Re: [PHP] Broken pipes, time outs, PHP, and mail

2010-09-08 Thread a...@ashleysheridan.co.uk
Could it be that there are connection limits on the remote server? Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Bob McConnell" Date: Wed, Sep 8, 2010 18:24 Subject: [PHP] Broken pipes, time outs, PHP, and mail To: From: Dave M G > I have a set of scripts that s

RE: [PHP] Broken pipes, time outs, PHP, and mail

2010-09-08 Thread Bob McConnell
From: Dave M G > I have a set of scripts that sends out emails to a list of about 150 > people. Sometimes it works fine. > > Other times, it dies part way through the list, and in my error logs I > get this output: > > fputs() [function.fputs]: send of 22 bytes > failed with errno=32 Broken p