[Bug 228679] Re: Send::Email doesn't finish SMTP transaction properly
petski
pet at painfullscratch.nl
Tue Dec 30 18:21:37 UTC 2008
I suspect you're using "mailer => SMTP".
I just looked at the source code for Email::Send::SMTP, and noticed that
"QUIT" is only called in two scenario's:
1) The Email::Send object get's out of scope
2) send() is called for the second time (which seems weird).
A workaround could be:
1) Make sure your Email::Send object get's out of scope sooner (using
"if(1)" or "curly brackets"), like this:
=begin of code example=
# some code here
if(1) {
my $sender = Email::Send->new({mailer => 'SMTP'});
$sender->mailer_args([Host => 'smtp.example.com']);
$sender->send($message);
}
# rest of code
=end of code example=
2) Use "mailer => Sendmail" instead
--
Send::Email doesn't finish SMTP transaction properly
https://bugs.launchpad.net/bugs/228679
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list