Net::SMTP Unexpected EOF on command channel
I am using Net::SMTP to send emails.
I have two email addresses in an array, which I loop through to send.
The first one goes through, but not the second one does not show up in my inbox.
I turned Net::SMTP Debug = 1, here is where it stops (from STDERR):
....entire message truncated....
Net::SMTP=GLOB(0x863af64)<<< 451 See http://pobox.com/~djb/docs/smtplf.html.
[Wed Jul 2 18:28:39 2003] newsletter.cgi: Net::SMTP: Unexpected EOF on command channel at /path/to/HTML/Newsletter.pm line 92
i fixed the problem by sending \r\n at the end of every datasend() line.
seems to be okay now.
September 21st, 2003, 10:38 AM
I also got this mysterious error message "unexpected eof on command channel" while sending a mail using Net::SMTP.
What I was trying to do was to send a base64-encoded attachment.
I finally solved the problem by calling $smtpobject->datasend(...) separately for each line of my base64 ecoded data instead of once with the whole bunch of data as one parameter.
Hope this might help someone with the same problem. :-)
September 21st, 2003, 10:42 AM