rtremaine has asked for the wisdom of the Perl Monks concerning the following question:

I need to write a script that will send email notifications based on database info. I wish to be able to send html as well text and may need to send attachments. I have looked at many of the different Mail modules and I am looking for advice on the best one to use in terms of performance and ease of use. I will be in a Linux environment with sendmail available. Many thanks!!

Replies are listed 'Best First'.
Re: Which Mail module to use?
by jdtoronto (Prior) on Feb 28, 2004 at 04:12 UTC
    I tried several and settled on Mime::Lite as being the most useful and friendly of the lot for my purposes. Of course YMMV, but it is a great starting place.

    jdtoronto

Re: Which Mail module to use?
by AidanLee (Chaplain) on Feb 28, 2004 at 18:11 UTC
    I tend to like Mail::Sender. you'd be looking at using the sendMessage and sendFile functions for easy mail functions. Both take an optional ctype parameter which you can specify as 'text/plain' (the default) or 'text/html' for sending different kinds of email.
Re: Which Mail module to use?
by hawson (Monk) on Feb 28, 2004 at 23:13 UTC
    I've had good luck with Mail::Sendmail for very simple stuff. I don't think that it does attachments though.
Re: Which Mail module to use?
by gmpassos (Priest) on Feb 28, 2004 at 22:56 UTC
    If you need to send through a SMTP server, with authentication or not, and to send TXT & HTML messages, and attachments take a look in Mail::SendEasy.

    Mime::Lite is also a good option.

    Graciliano M. P.
    "Creativity is the expression of the liberty".

Re: Which Mail module to use?
by rtremaine (Acolyte) on Mar 03, 2004 at 04:18 UTC
    went with MIME::Lite. thanks again!!