Integrates Stampie with Symfony2.
Add HB\StampieBundle\HBStampieBundle()
to your AppKernel.php
in the registerBundles
method.
Add the configuration to config.yml
as follows
hb_stampie:
adapter: buzz # buzz and noop are supported
mailer: postmark # [send_grid, mail_chimp, postmark] is supported
server_token: POSTMARK_API_TEST # Replace with your ServerToken for you Service
For the buzz
adapter to work it is required to have a buzz
service fortunately SensioBuzzBundle
provides this.
This bundles allows you to use StampieExtra easily: add the extra library in your project and activate the configuration to wrap the mailer in the extra mailer dispatching events:
hb_stampie:
extra: ~
If you want to enable the ImpersonateListener to send all emails to the same address, provide a non-empty delivery address:
hb_stampie:
extra:
delivery_address: dev@example.com