Which Perl module would you recommend for sending

2019-03-18 21:55发布

问题:

I am searching a Perl module to write (SMTP) and read (IMAP) e-mails. Which module out of the bunch would you suggest?

回答1:

MIME::Lite is the most widely used and stable module around for sending e-mails. It supports sendmail and SMTP sending methods.

For IMAP, it depends on how low-level your needs are, but Net::IMAP::Client is simple to use and should suit most needs.



回答2:

For email sending, Email::Sender is pretty neat.



回答3:

For sending emails I've been a long (time || in the tooth) user of MIME::Lite and have many scripts/programs that use it.

However recently I've been using Email::Stuff and would highly recommend looking at it.

For Perl email information in general then the Perl Email Project would be a good resource but its currently under reconstruction.

In lieu of this I recommend you keep an eye on Ricardo Signes blog (rjbs is the core maintainer of the Perl Email Project and pretty much ubiquitous with everything email in Perl!).

Here are a few useful links from rjbs recent advent calendar:

  • MIME, Dreaming of a White Christmas
  • E-mail Made Simple
  • Sending Email Simply

/I3az/



回答4:

I've used Mail::Sendmail in the past, and it's worked great. Just need Perl and a network connection.