Advertisement

10.25.2003 at 01:11PM PDT, ID: 20778036
[x]
Attachment Details

Net::SMTP Unexpected EOF error

Asked by dennismv in Perl Programming Language

Tags: , ,

I've searched the net, and couldn't find anything about a problem I'm having with Net::SMTP.
Could you suggest something or direct me somewhere about this problem ?  Ultimately I'm looking to get it resolved.
 
I get the error at various parts of the SMTP conversation, either after $smtp->to or $stmp->dataend(), etc.
The logs are like this:
Net::SMTP=GLOB(0x80664e4)>>> .
Net::SMTP: Unexpected EOF on command channel at smtp.pl line 163
 
From what it looks like, remote server drops the connection unexpectedly, yet I may be wrong.  I want to be able to know when this happens, so I can deal with it in my script.

I tried if (undef($stmp)) die "EOF error again";
However, this doesn't do it.  Even though $smtp should NOT be defined anymore, it seems to still 'be there", and program skips right past it.  Hence the script continues on (much faster though, since it doesn't really send anymore), and tells me that ALL emails were sent, when in fact the script stopped sending emails after the EOF error.  The only way to find out where it really stopped sending is to go to the log, where I found that EOF error.  What I want to do is to automatically stop any and all processing when that error happens.  In other words, do something like throw () catch () exception handling and deal with it from there.  Or anything else that will do the job.

Is there a way to do that ?  

thanks,
Dennis
Start Free Trial
[+][-]10.25.2003 at 01:42PM PDT, ID: 9620639

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.25.2003 at 03:35PM PDT, ID: 9620864

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.26.2003 at 01:19AM PST, ID: 9621995

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.26.2003 at 03:00AM PST, ID: 9622134

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.26.2003 at 03:22AM PST, ID: 9622163

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.26.2003 at 03:25AM PST, ID: 9622171

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.26.2003 at 03:50AM PST, ID: 9622209

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.28.2003 at 06:23AM PST, ID: 9633864

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.28.2003 at 07:18AM PST, ID: 9634289

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.28.2003 at 07:28AM PST, ID: 9634360

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.28.2003 at 07:55AM PST, ID: 9634584

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Perl Programming Language
Tags: eof, unexpected, command
Sign Up Now!
Solution Provided By: kandura
Participating Experts: 3
Solution Grade: A
 
 
[+][-]10.30.2003 at 06:01PM PST, ID: 9654848

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32