Skip to content

Instantly share code, notes, and snippets.

@EngKhaledB
Last active May 21, 2023 20:52
Show Gist options
  • Save EngKhaledB/906414c355adb6d1545a272c62a0bfaa to your computer and use it in GitHub Desktop.
Save EngKhaledB/906414c355adb6d1545a272c62a0bfaa to your computer and use it in GitHub Desktop.
Setup MailHog with Lando, Pantheon & WordPress
name: appname
recipe: pantheon
config:
framework: wordpress
site: appname
id: [side-id]
proxy:
mailhog:
- mail.appname.lndo.site
services:
mailhog:
type: mailhog
hogfrom:
- appserver
<?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');
@sdubois
Copy link

sdubois commented Jan 1, 2021

This is very helpful. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment