Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Which Mail module to use?

by rtremaine (Acolyte)
on Feb 28, 2004 at 04:03 UTC ( [id://332446]=perlquestion: print w/replies, xml ) Need Help??

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://332446]
Approved by jdtoronto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-18 20:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found