PHP SwiftMailer or PEAR Mail
Asked Answered
J

3

2

Does someone have some comments about those two? in terms of experience, performance, easiness, problems, spam related, etc.

Say you need to send emails (10-20) every 1 hour (cron job).

Jinny answered 14/3, 2011 at 1:33 Comment(0)
U
7

I'd go with SwiftMailer. I've used both and Swiftmailer has imho the best API and support. Also SwiftMailer maintenance has been adopted by Fabien Potencier of Symfony fame which only means that it'll improve over time. Pear Mail is also under developement but not really active.

In terms of functionality both are comparable though so it all comes down to API preference.

Uppercut answered 14/3, 2011 at 1:39 Comment(2)
Another big benefit to SwiftMailer is the pluggable transport mechanism, like this one for Amazon SES. There's also a branch in the repository with experimental DKIM and S/MIME signature support. It has many, many more options, but also is more complex as a result.Kayseri
Good point, yet the api is amazingly simple and self-explanatory if you want to send simple mails.Uppercut
A
5

If you are going to move to PHP 5.3 then I would suggest ditching PEAR Mail. I have also been a user of PEAR mail and other packages for long but now I am losing patience with the way PEAR packages just break with new PHP releases. To me it happened with PEAR Mail and HTML_Template_Flexy when I upgraded to 5.3.x. My scripts just stopped working!

These breakages may be genuine and trivial to fix but what scares me is a lack of ownership around these issues and shuttling of blame between PHP and PEAR camp. PEAR has too much PHP4 baggage to carry and it maybe better to look @ new PHP5 alternatives.

And let's face it - Do you want to wake up one day and just wonder why the heck the cron job is not sending mails when you touched nothing?

@see also https://bugs.php.net/bug.php?id=40244

@see also http://pear.php.net/bugs/bug.php?id=9950

Alten answered 18/10, 2011 at 6:7 Comment(0)
M
1

PEAR Mail is very easy to get up and running, and offers a lot of flexibility. With only 10-20 emails per hour, I don't think performance should be a consideration.

Mindexpanding answered 14/3, 2011 at 1:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.