Last active
May 21, 2023 20:52
-
-
Save EngKhaledB/906414c355adb6d1545a272c62a0bfaa to your computer and use it in GitHub Desktop.
Setup MailHog with Lando, Pantheon & WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: appname | |
recipe: pantheon | |
config: | |
framework: wordpress | |
site: appname | |
id: [side-id] | |
proxy: | |
mailhog: | |
- mail.appname.lndo.site | |
services: | |
mailhog: | |
type: mailhog | |
hogfrom: | |
- appserver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function custom_kh_lando_smtp($phpmailer) { | |
$phpmailer->isSMTP(); | |
$phpmailer->Host = 'mailhog'; | |
$phpmailer->SMTPAuth = false; | |
$phpmailer->Port = 1025; | |
} | |
add_action('phpmailer_init', 'custom_kh_lando_smtp'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is very helpful. Thank you!