-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Closed
Copy link
Labels
DXDX = Developer eXperience (anything that improves the experience of using Symfony)DX = Developer eXperience (anything that improves the experience of using Symfony)FeatureMailer
Description
Description
This nice option is very useful while working with emails in dev
.
In Symfony 4.2 and earlier versions, you enabled it as follows:
# config/packages/dev/swiftmailer.yaml
swiftmailer:
delivery_addresses: ['someone@example.com']
In Symfony 4.3 and newer, using the new Mailer, you enable it as follows:
# config/services_dev.yaml
services:
mailer.dev.set_recipients:
class: Symfony\Component\Mailer\EventListener\EnvelopeListener
tags: ['kernel.event_subscriber']
arguments:
$sender: null
$recipients: ['someone@example.com']
If technically possible, could we please make this feature as beautiful and simple as before? Thanks!
Metadata
Metadata
Assignees
Labels
DXDX = Developer eXperience (anything that improves the experience of using Symfony)DX = Developer eXperience (anything that improves the experience of using Symfony)FeatureMailer