| Module Info
| Add a review of Mail-Sendmail
It's ancient and it's quirky, mysterious and spooky; it has its limitations. However it's damn simple to use, so it's my go to module for quick one-off scripts that need to send mail.
For anything more involved, I'd recommend Mail-Box.
It works, but it doesn't do what it says on the tin. The module's name implies that it uses sendmail to send mail, it does not it talks RFC(2)821 to a given server.
And its lack of support for SMTP AUTH is a draw back for some of us forced to use 3rd party sites for hosting.
I used Mail::Sendmail and a few others "older" modules back from the days when it didn't support setting envelope sender different from RFC From, and when the test hung on some dead host.
If it's still working for you, great. I personally have moved on to other modules like Email::Sender::Simple, which abstracts sending mechanism (transport) and support SMTP auth, for two. Also, many of the guide/documentation for Mail::Sendmail are not quite up to date in style (though they still might work), for example the low level way of building HTML email. Also, the Changelog file doesn't seem to be maintained?
This is really straightforward. You can also configure it to do clever and unusual things thanks to the flexible headers-hash.
The off-site docs are very helpful for sending HTML email (which many of the smaller email modules can't handle very well, if at all).
Simple, powerful, and monolithic, Mail::Sendmail has become my mail
module of choice. One of the first modules I install when I build
a new Perl.
It's all about the interface! While it isn't perfect, or even phenomenal, it is phenomenally easy. I can drop in quick email notices wherever I want, without hassle, and it just works on Win32, GNU/Linux, and Mac OS. Excellent.
I've used this in a number of different applications now, from little deamons to a large LIMS system. I've never tried to do anything complicated with it, but for something simple to use to send email notifications, text reports, etc. I've found this to abe a fantastic tool. Fairly portable, easy to install and use. I have yet to have encountered a single problem.
I've been using the module for a few months already and it really does the right job. It is very convinient and configurable. Well done :)
There are other modules for sending SMTP mail (Net::SMTP and the Mimetools spring to mind), but this one is my favourite. It has a very natural interface: a hash. Each key corresponds to a header (and you can add/invent whatever you like) and the "body" corresponds to the body of the message. Call the "sendmail" function with this hash, and off goes your message. Simple as pi.
It's not the best mail module out there, but it is does its job reliably and without a big hassle, so I like it best.
Mail::Sendmail is an easy to use, platform independent mailer. I've used it on both Win32 and Linux. Although it has sendmail in the name, it does not require (the command-line) sendmail to function. It has a few short-comings (no SMTP AUTH support, for example) but it gets the job done. It also comes with a handy email address validation regex. The off-site FAQ has some useful example code for things like HTML mail and attachments.