Which Perl module would you recommend for sending and getting e-mail?

只愿长相守 提交于 2019-12-04 10:31:58

问题


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.



来源:https://stackoverflow.com/questions/2530154/which-perl-module-would-you-recommend-for-sending-and-getting-e-mail

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!