我应该使用 CPAN 中的哪个包来发送邮件? [英] Which package from CPAN should I use to send mail?

查看:19
本文介绍了我应该使用 CPAN 中的哪个包来发送邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我应该使用 CPAN 中的哪个包来发送邮件?

Which package from CPAN should I use to send mail?

有时 timtowtdi 方法很累人.对我来说,尤其是在包装选择方面.

Sometime the timtowtdi approach is very tiring. For me, especially when it comes to package selection.

所以我只想发送电子邮件,可能是 HTML 电子邮件.在 Mail-Sendmail、Mail-Sender、NET-SMTP(顺便说一句——在 PPM 中不可用)、Mail-SendEasy 和其他 80 个左右的包名称中包含Mail"的包之间——我应该选择哪一个?

So all I want is to send email, potentially HTML emails. Between Mail-Sendmail, Mail-Sender, NET-SMTP (by the way - not available in PPM), Mail-SendEasy, and the 80 or so other packages that have 'Mail' in their package name - which one should I choose?

在这个主题中,您选择慢跑的规范"包的一般方法是什么.IE.每个人都在使用"的包.某处是否有任何评级或受欢迎程度的广告牌?

And while in this subject, what is your general apprach to choose the "canonical" package for a jog. I.e. the package that "everybody is using". Is there any rating or popularity billboard somewhere?

推荐答案

为慢跑选择规范"包的一般方法是什么.IE.每个人都在使用"的包.某处是否有评分或受欢迎程度的广告牌?

what is your general apprach to choose the "canonical" package for a jog. I.e. the package that "everybody is using". Is there any rating or popularity billboard somewhere?

当我想选择使用几个 CPAN 模块中的哪一个时,我看的是

When I want to pick which of several CPAN modules to use, the things I look at are

CPAN 模块的试金石是文档的第一页.如果有一个凌乱的概要,或者没有一个简单的工作示例的概要,我猜这个模块可能不是一个好的模块.不整洁、凌乱或格式错误的文档也是一个危险信号.

The litmus test for CPAN modules is the first page of the documentation. If there is a messy synopsis, or a synopsis without a simple working example, I guess that the module is probably not a good one. Untidy, messy, or misformatted documentation is also a red flag.

  • 模块最新版本的发布日期告诉您它是否正在维护,
  • CPAN 测试人员的报告告诉您该模块是否可以轻松安装
  • rt.cpan.org 上的错误列表让您了解作者在维护方面的积极程度模块.
  • the date of release of the last version of the module tells you if it is being maintained,
  • the CPAN tester's reports tell you whether the module is likely to install without a struggle
  • the bugs list on rt.cpan.org gives you some idea of how active the author is about maintaining the module.

另外,是否有该模块的邮件列表?拥有邮件列表是一个很好的标志,表明模块质量良好、维护良好、稳定、文档化和流行.

Also, is there a mailing list for the module? Having a mailing list is a pretty good sign of a good-quality, maintained, stable, documented and popular module.

  • 模块作者的名字是什么?
  • 作者发布了多少其他模块?
  • 作者发布了哪些模块?

作者是一个重要因素.有一些作者创造了品质卓越的东西,比如 Gisle Aas、Graham Barr、Andy Wardley 或 Jan DuBois,还有一些人创造了很多可以被描述为实验性"的东西,比如 Damian Conway 或 Tatsuhiko宫川.小心那些发布了很多 Acme::(笑话)模块的人.另外,要小心那些只维护一两个模块的人写的东西.模块总数少于五个的人通常不会维护它们.

The author is a big factor. There are some authors who create things which have excellent quality, like Gisle Aas, Graham Barr, Andy Wardley, or Jan DuBois, and some people who turn out a lot of things which could be described as "experimental", like Damian Conway or Tatsuhiko Miyagawa. Be wary of people who've released a lot of Acme:: (joke) modules. Also, beware of things written by people who only maintain one or two modules. People who have fewer than five modules in total usually don't maintain them.

cpanratings.perl.org 通常很有帮助,但请谨慎对待.

cpanratings.perl.org is often helpful, but take it with a grain of salt.

除此之外,很多只是反复试验.下载看看它是否通过了自己的测试,看看它是否有任何测试,编写测试脚本等.

Apart from that, a lot of it is just trial and error. Download and see if it passes its own tests, see if it even has any tests, write a test script, etc.

  • Google 上的最高搜索结果往往是古老的 Perlmonks 或 perl.com 或 Dr. Dobbs 的期刊文章,而这些通常会将您指向过时的内容.
  • search.cpan.org 的搜索功能将十年未更新的模块放在第一页,最新最好的放在第十页什么的.
  • The top results on Google tend to be ancient Perlmonks or perl.com or Dr. Dobbs' Journal articles, and these often point you towards outdated things.
  • search.cpan.org's search function puts modules which haven't been updated for ten years on page one, and the latest and greatest on page ten or something.

我还想说一件事:警惕关于博客、stackoverflow、Usenet 新闻等的建议——人们倾向于引导您使用本月最流行的任何模块,而不是一个稳定的、经过验证的解决方案.流行"模块通常缺乏文档、不稳定、具有噩梦般的依赖关系,而且昨天流行的模块经常突然失宠并被放弃,被本月的另一种风格所取代,如果你决定这样做,会让你陷入困境使用它们.

One more thing I want to say: Be wary of advice on blogs, stackoverflow, Usenet news, etc. - people tend to guide you to whatever module happens to be flavour of the month, rather than a stable, proven solution. The "trendy" modules usually lack documentation, are unstable, have nightmarish dependencies, and quite often yesterday's fashionable modules suddenly fall out of favour and are abandoned, to be replaced by another flavour of the month, leaving you in the lurch if you decide to use them.

这篇关于我应该使用 CPAN 中的哪个包来发送邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆