Does anyone have recommendations for a good (and lightweight!) PHP mailer library?

狂风中的少年 提交于 2019-12-24 00:49:40

问题


Pretty much as the title says.

I'm currently using the SwiftMailer (http://swiftmailer.org), but I'm just wondering how it stacks up to the other libraries out there.


回答1:


Not sure about libraries like PHPMailer, Swiftmailer, HTMLMimeMail (I've used this one for a couple of projects in the past ; never had any problem with it) or the like, but I think, for a project of my own, I'd have a look at Zend_Mail

Why ? I see at least two reasons :

  • Zend Framework's components are well written, well tested
  • There are maintenance releases of the Framework quite often (about once a month), which is good to know ; the project is alive
  • It might be the occasion to begin using other components as well ;-)

And for a couple of drawbacks :

  • You might have to extract that component (and the components it rely on) from the Framework if you don't want to include it as a whole :-(
  • Officialy, you'll need PHP >= 5.2.4 (not sure about the .4) ; some components work with PHP 5.1.x, but it's not officialy supported



回答2:


I use PHPMailer Not sure how it stacks up, but it's definitely a contender..

Edit: Check out this post to see how the two stack up




回答3:


For everyone using PHPMailer, there is an exploit which makes it possible to read any file on the server. Check sourceforge documentation for PHPMailer to see more information.




回答4:


Another vote for PHPMailer here, been using it for years and haven't any problems.

Funnily enough I was looking at trying out SwiftMailer a few months back but saw some concerns about performance of the latest version on the forums which kind of put me off...



来源:https://stackoverflow.com/questions/1220560/does-anyone-have-recommendations-for-a-good-and-lightweight-php-mailer-librar

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