Skip to content

Commit 9c8ed6d

Browse files
committed
Fixing swiftmailer config path and added missing config for dev env
1 parent e4bdc3d commit 9c8ed6d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config/packages/dev/swiftmailer.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#swiftmailer:
2-
#delivery_address: [email protected]
1+
swiftmailer:
2+
disable_delivery: true

src/EventSubscriber/CommentNotificationSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function onCommentCreated(GenericEvent $event): void
7272
->setBody($body, 'text/html')
7373
;
7474

75-
// In app/config/config_dev.yml the 'disable_delivery' option is set to 'true'.
75+
// In config/packages/dev/swiftmailer.yaml the 'disable_delivery' option is set to 'true'.
7676
// That's why in the development environment you won't actually receive any email.
7777
// However, you can inspect the contents of those unsent emails using the debug toolbar.
7878
// See https://symfony.com/doc/current/email/dev_environment.html#viewing-from-the-web-debug-toolbar

0 commit comments

Comments
 (0)