Install and use Swift Mailer in Drupal 8 (part 2 : implementation)
Swiftmailer is abandoned and will be replaced by Symfony Mailer : check our post about Symfony Mailer
In previous article we explained how we installed the Swift Mailer module and its dependencies.
In this second part, let's see how we configure and implement it to use in our modules to send formated HTML mail with attachment.
First you will need to have Mail system module installed already. There is no particular issue or difficulty here.
1) Configure Swift Mailer
In Swift Mailer configuration (/admin/config/swiftmailer/transport) , we select the following options: