Switching back to mailgun fixed a problem I noticed with gmail.
For my part, I noticed it between yesterday and today.
php, gmail, phpmailer
I had created a redirect like webmaster@mydomain.com to youpla@gmail.com
Emails sent to a gmail redirect were not going through, while they were going to other emails.
I just did the test in production as soon as I go back to PHP MAILER I don’t receive anything.
This is exactly what I used except true should be a boolean, not a string I think. Maybe it doesn’t matter. So in site/config/config.php :
return [
...,
'email' => [
'transport' => [
'type' => 'smtp',
'host' => 'smtp.mailgun.org',
'port' => 587,
'security' => true,
'auth' => true,
'username' => 'postmaster@sandboxdomainhere.mailgun.org',
'password' => '...',
]
]
];
I am using Mailgun’s sandbox domain which works fine as long as you verify recipients as “Authorized Recipients”. In my case I only want a contact form to send to myself.