[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] sending email through Perl



>But what's a portable way of sending email in Perl?
>

There are several mailing modules using Perl only. I shamelessly advocate
my own one: Mail::Sendmail, which I believe is the easiest to use. It also
does MIME Quoted printable encoding by default, but it doesn't automate
attachments. If you need attachments, try Mail::Sender. You also have
Graham Barr's popular Mail::Send, which now doesn't rely on sendmail
anymore and can use Net::SMTP.

Have a look at <http://alma.ch/perl/mail.htm> for the Mail::Sendmail docs
and for links to the other modules at the bottom of that page.

>If I have 100 mails to send with 100 different $bodxText, I gather
>that there's more efficient way than calling mail 100 times. What
>should I do?

You can add recipients in the To:, Cc: or Bcc: fields. But I once had to do
that, and preferred sending individual messages from a looping script,
adding a sleep between messages to not overload the server.

M.

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch