@Findus23 opened this Issue on September 2nd 2019 Member

related to https://github.com/matomo-org/matomo/issues/8613 and https://github.com/matomo-org/matomo/issues/12007

inspired by https://forum.matomo.org/t/email-reports-not-sent-broken-pipe-errno-32/34047

Matomo uses a copy of Zend Mail that has last been updated in 2011 (in https://github.com/matomo-org/matomo/issues/2581)

While SMTP isn't the fastest developing protocol, a lot has changed in that time.

So instead of keeping an outdated library or reinventing the wheel, I'd recommend replacing it with a maintained, popular PHP library like PHPmailer or swiftmailer.

Bonus side effect: We would get proper error messages for hard to debug errors instead of things like fwrite(): send of 6 bytes failed with errno=32 Broken pipe.

@diosmosis commented on November 14th 2019 Member

Any issue w/ using swiftmailer over PHPMailer? It seems more used.

CC @tsteur

@Findus23 commented on November 14th 2019 Member

@diosmosis It doesn't really matter as both are very popular and maintained (last update in the last few days)
I always thought PHPMailer was more popular, but that might be countered by very popular applications like Nextcloud using Swiftmailer

@tsteur commented on November 14th 2019 Member

@diosmosis @Findus23 I have no preference there.

PHPMailer has maybe more stars on github and less dependencies and supports older PHP versions (PHP version is not important though)? Really no big preference though. Not sure which one is better in the end ... I suppose they both do the basics 👍

Powered by GitHub Issue Mirror