Mailer - Phpmailer or Swiftmailer

I am building a new site with yii that uses alot of email sending. After some research I noticed that there are 2 main components. Phpmailer and Swiftmailer.

However I could not find any real comparison of those 2.

Is there anyone that can advice…

  • which one is better?

  • more feature rich ?

  • Are they designed to more specific usages ?

  • is Yii2 more integrated with one of them ?

Thank you for your insights and support

SwiftMailer has an official team-supported extension so go with that :)

IIRC, it comes pre-loaded with both basic and advanced application templates.

The preloaded Swiftmailer extension is fantastic.