Jul 8, 2014, 6:03 AM
Post #1 of 1
Linux RHEL 5.5.56
Mail::Sender MailMsg() throws error but sends email
Mail::Sender v0.8.2 (most recent, installed last week)
My problem is, MailMsg() sends the email but also throws an error. When I check for an error, I print the error and end the program.
Here's the error:
mailsender ERROR: -5 on MailMsg: 'Server error: 500 command unrecognized'
If the email is sent, there should be no error. My test program does not do this, but my main "big" program does, and I can't see any differences.
My full subroutine here. Anyone have any ideas what is going on here? Full test program that works here but I don't know what's different from my full subroutine.
EDIT: By looking at the debug SMTP server log, the server says "QUIT" command unrecognized. I didn't get this error yesterday.
Also, I think Mail::Sender just throws an error in debug mode, but not regular mode.
* Redhat Linux RHEL 5.5.56
* Perl 5.8.8
(This post was edited by bulrush on Jul 9, 2014, 3:19 AM)