RE: Re: [PHP] Broken pipes, time outs, PHP, and mail
| From: | Bob McConnell | Date: | Wed, 08 Sep 2010 17:55:03 +0000 |
| Subject: | RE: Re: [PHP] Broken pipes, time outs, PHP, and mail | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-307896@lists.php.net to get a copy of this message | ||
From: ash@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 traffic with Wireshark. Set the capture filter to
only grab SMTP traffic to that server's IP address. Unless it is going
through SSL/TLS, you can read the handshake messages. They will look
something like this:
-----8<--------------------------------
220 lists.php.net ESMTP Postfix
EHLO ashleysheridan.co.uk
250-mail.php.net
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250 8BITMIME
MAIL FROM:<ash@ashleysheridan.co.uk>
250 Ok
RCPT TO:<php-general@lists.php.net>
250 Ok
-----8<--------------------------------
The lines beginning with numbers are the server's responses. All of them
should be ASCII/UTF-8 text.
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 LF.
Bob McConnell