Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/symfony/mailomat-mailer
Symfony Mailomat Mailer Bridge
https://github.com/symfony/mailomat-mailer
component php symfony symfony-component
Last synced: about 1 month ago
JSON representation
Symfony Mailomat Mailer Bridge
- Host: GitHub
- URL: https://github.com/symfony/mailomat-mailer
- Owner: symfony
- License: mit
- Created: 2024-06-29T07:56:42.000Z (5 months ago)
- Default Branch: 7.2
- Last Pushed: 2024-09-28T08:24:59.000Z (about 2 months ago)
- Last Synced: 2024-09-30T16:03:09.411Z (about 2 months ago)
- Topics: component, php, symfony, symfony-component
- Language: PHP
- Homepage: https://symfony.com/mailer
- Size: 18.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Mailomat Bridge
===============Provides [Mailomat](https://mailomat.swiss) integration for Symfony Mailer.
Mailer
-------Configuration example:
```env
# .env.local# SMTP
MAILER_DSN=mailomat+smtp://USERNAME:PASSWORD@default# API
MAILER_DSN=mailomat+api://KEY@default
```Where:
- `USERNAME` is your Mailomat SMTP username (must use your full email address)
- `PASSWORD` is your Mailomat SMTP password
- `KEY` is your Mailomat API keyWebhook
-------Create a route:
```yaml
framework:
webhook:
routing:
mailomat:
service: mailer.webhook.request_parser.mailomat
secret: '%env(WEBHOOK_MAILOMAT_SECRET)%'
```The configuration:
```env
# .env.localWEBHOOK_MAILOMAT_SECRET=your-mailomat-webhook-secret
```And a consumer:
```php
#[\Symfony\Component\RemoteEvent\Attribute\AsRemoteEventConsumer(name: 'mailomat')]
class MailomatConsumer implements ConsumerInterface
{
public function consume(AbstractMailerEvent $event): void
{
// your code
}
}
```Where:
- `WEBHOOK_MAILOMAT_SECRET` is your Mailomat Webhook secretResources
---------* [Contributing](https://symfony.com/doc/current/contributing/index.html)
* [Report issues](https://github.com/symfony/symfony/issues) and
[send Pull Requests](https://github.com/symfony/symfony/pulls)
in the [main Symfony repository](https://github.com/symfony/symfony)