Integrates Stampie with Symfony.
$ composer require stampie/stampie-bundle
Add Stampie\StampieBundle\StampieBundle()
to your AppKernel.php
in the registerBundles
method.
Add the configuration to config.yml
as follows
stampie:
mailer: postmark # [send_grid, postmark, mailgun, mandrill, mailjet, spark_post] are supported
server_token: POSTMARK_API_TEST # Replace with your ServerToken for your Service
The HttpClient used by the bundle is configurable. By default, it uses the service httplug.client
, which
is the name of the default HTTP client when using HttplugBundle.
Using this bundle is optional. You can provide your own service integrating HTTPlug:
stampie:
http_client: my_http_client
This bundles allows you to use StampieExtra easily: add the extra library in your project. The integration is activated automatically to wrap the mailer in the extra mailer dispatching events. An integration with the profiler is also provided.
If you want to enable the ImpersonateListener to send all emails to the same address, provide a non-empty delivery address:
stampie:
extra:
delivery_address: [email protected]