[Perl] Sending emails

Tzafrir Cohen tzafrir at technion.ac.il
Sun Nov 10 06:55:57 PST 2002

On Sun, 10 Nov 2002, Reuven M. Lerner wrote:

> >>>>> "Shlomo" == Shlomo Yona <shlomo at cs.haifa.ac.il> writes:
>   Shlomo> I wonder if experienced users can suggest a preferable way
>   Shlomo> of sending mail from Perl scripts.
> I generally use Mail::Sendmail, available on CPAN.I'm not sure how
> efficient it is, but the API is ridiculously simple.

This one uses SMTP to send the message.

>   Shlomo> I need to be able to specify sender, recipient,
>   Shlomo> attachments, and of course message body and a subject.
> If you want to send attachments, then you might want to look into
> Mail::Sender.This seems to be the module that many people use to
> send attachments and other complex documents.Unfortunately, I've
> found the documentation for Mail::Sender to be very hard to
> understand.In particular, the code samples are written in a very
> weird syntax.
> But hey, it's still better than invoking the command-line "mail"
> program via system()...

Is it?


Tzafrir Cohen
mailto:tzafrir at technion.ac.il

More information about the Perl mailing list