[Bug 228679] Re: Send::Email doesn't finish SMTP transaction properly

Tomasz Chomiuk t.chomiuk at googlemail.com
Tue Dec 30 20:45:17 UTC 2008


thanks mate.. actually I've been using 'mailer => sendmail' for a
quite some time now since it makes more sense due to tsl/sasl setup.
think i should try e::sender some time soon.. please do keep up the
excellent work!

2008/12/30 petski <pet at painfullscratch.nl>:
> 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 direct subscriber
> of the bug.
>

-- 
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