Ruiwen
Ruiwen

Reputation: 2325

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

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.

Upvotes: 2

Views: 2899

Answers (4)

Andreas
Andreas

Reputation: 21

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.

Upvotes: 0

philm
philm

Reputation: 134

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...

Upvotes: -2

Pascal MARTIN
Pascal MARTIN

Reputation: 401002

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

Upvotes: 3

JasonV
JasonV

Reputation: 596

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

Upvotes: 1

Related Questions