develooper Front page | perl.pep | Postings from July 2014

Re: Derrivative code

Thread Previous
Matijs van Zuijlen
July 14, 2014 06:36
Re: Derrivative code
Message ID:
On 13/07/14 19:50, Ricardo Signes wrote:
> * Matijs van Zuijlen <> [2014-07-13T07:17:39]
>> - Email::Sender is more dangerous: if through a programming error an
>> undefined transport is passed to sendmail(), it will happily try to send the
>> mail you were trying to save locally via SMTP.
> Don't use Email::Sender::Simple, use the Mbox (or whatever) transport directly.

Thanks, that's a lot easier in this case.

>> - Email::Sender::Transport::Mbox will not accept messages without a sender,
>> whereas Email::LocalDelivery does allow this.
> Don't you need a sender for the From_ line?  Pass an empty string as needed..?

Yes, using the transport directly makes that easier too.

Thanks for the hints. I got it all working nicely.



Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About