https://github.com/stampie/stampie-bundle
  
  
     
    https://github.com/stampie/stampie-bundle
  
bundle hacktoberfest mailer php stampie symfony symfony-bundle
        Last synced: 10 days ago 
        JSON representation
    
- Host: GitHub
 - URL: https://github.com/stampie/stampie-bundle
 - Owner: Stampie
 - License: mit
 - Created: 2011-12-05T09:16:30.000Z (almost 14 years ago)
 - Default Branch: main
 - Last Pushed: 2022-03-30T13:37:45.000Z (over 3 years ago)
 - Last Synced: 2025-04-23T15:17:09.000Z (6 months ago)
 - Topics: bundle, hacktoberfest, mailer, php, stampie, symfony, symfony-bundle
 - Language: PHP
 - Homepage: https://stampie.github.io/
 - Size: 87.9 KB
 - Stars: 25
 - Watchers: 3
 - Forks: 5
 - Open Issues: 2
 - 
            Metadata Files:
            
- Readme: README.md
 - License: LICENSE.txt
 
 
Awesome Lists containing this project
README
          # StampieBundle
[](https://github.com/Stampie/stampie-bundle/actions/workflows/ci.yaml)
Integrates [Stampie](https://github.com/Stampie/Stampie) with Symfony.
```bash
$ composer require stampie/stampie-bundle
```
## Usage
Add `Stampie\StampieBundle\StampieBundle()` to your `AppKernel.php` in the `registerBundles` method.
Add the configuration to `config.yml` as follows
``` yaml
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](https://github.com/php-http/HttplugBundle).
Using this bundle is optional. You can provide your own service integrating HTTPlug:
``` yaml
stampie:
    http_client: my_http_client
```
## StampieExtra
This bundles allows you to use [StampieExtra](https://github.com/Stampie/extra) 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:
``` yaml
stampie:
    extra:
        delivery_address: dev@example.com
```