Skip to content

Instantly share code, notes, and snippets.

@twfahey1
Last active October 22, 2023 11:02
Show Gist options
  • Save twfahey1/85ba41ed1b3cfcc083542dc1f08d92ba to your computer and use it in GitHub Desktop.
Save twfahey1/85ba41ed1b3cfcc083542dc1f08d92ba to your computer and use it in GitHub Desktop.
Drupal 10 - Symfony Mailer + Mailhog on Docksal - Local settings snippet
<?php
# If you have a SMTP setup, such as for example 'Postmark', where we have a config file `symfony_mailer.mailer_transport.postmark.yml`,
# this override would locally in Docksal make the Mailhog handler for what in prod is Postmark:
$config['symfony_mailer.mailer_transport.postmark']['configuration']['user'] = '';
$config['symfony_mailer.mailer_transport.postmark']['configuration']['pass'] = '';
$config['symfony_mailer.mailer_transport.postmark']['configuration']['host'] = 'mail';
$config['symfony_mailer.mailer_transport.postmark']['configuration']['port'] = '1025';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment