Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/symfony/sendgrid-mailer
Symfony Sendgrid Mailer Bridge
https://github.com/symfony/sendgrid-mailer
component php symfony symfony-component
Last synced: 1 day ago
JSON representation
Symfony Sendgrid Mailer Bridge
- Host: GitHub
- URL: https://github.com/symfony/sendgrid-mailer
- Owner: symfony
- License: mit
- Created: 2019-03-30T12:04:33.000Z (over 5 years ago)
- Default Branch: 7.2
- Last Pushed: 2024-12-11T12:13:57.000Z (12 days ago)
- Last Synced: 2024-12-15T00:04:09.715Z (9 days ago)
- Topics: component, php, symfony, symfony-component
- Language: PHP
- Homepage: https://symfony.com/mailer
- Size: 165 KB
- Stars: 63
- Watchers: 5
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Sendgrid Bridge
===============Provides Sendgrid integration for Symfony Mailer.
Configuration example:
```env
# SMTP
MAILER_DSN=sendgrid+smtp://KEY@default?region=REGION# API
MAILER_DSN=sendgrid+api://KEY@default?region=REGION
```where:
- `KEY` is your Sendgrid API Key
- `REGION` is Sendgrid selected region (default to global)Webhook
-------Create a route:
```yaml
framework:
webhook:
routing:
sendgrid:
service: mailer.webhook.request_parser.sendgrid
secret: '!SENDGRID_VALIDATION_SECRET!' # Leave blank if you dont want to use the signature validation
```And a consume:
```php
#[\Symfony\Component\RemoteEvent\Attribute\AsRemoteEventConsumer(name: 'sendgrid')]
class SendGridConsumer implements ConsumerInterface
{
public function consume(RemoteEvent|MailerDeliveryEvent $event): void
{
// your code
}
}
```Resources
---------* [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)