Silex SwiftMailer ServiceProvider
, (*1)
ServiceProvider for Silex which enables mail(), sendmail and null transports for SwiftMailer., (*2)
Installation
$ composer require frostiede/silex-swiftmailer-serviceprovider
Afterwards, register the ServiceProvider:, (*3)
$app->register(new SwiftMailerServiceProvider(), [
/** your options as you would provide in the Silex' SwiftMailerServiceProvider */
]);
Note: This is a replacement for the default SwiftMailerServiceProvider provided by Silex.
So only use one of them., (*4)
Configuration
In order to use one of the three new supported transports, simply provide the transport in the
constructor. Available options are:, (*5)
Example:, (*6)
$app->register(new SwiftMailerServiceProvider('null'), [
/** your options as you would provide in the Silex' SwiftMailerServiceProvider */
]);
Contribution
Any help is welcomed. Feel free to create issues and merge requests :-), (*7)
License
MIT License, (*8)