- Issue created by @mattyb
We use Pantheon to host our sites, as well as DDEV or LANDO locals, and Mail Safety is an essential and much-loved module in our company.
With automated processes, it would be nice if there were built-in DRUSH commands to stop email going out for those non--production environments.
I've created a quick patch with the following drush commands.
mailsafety:
mailsafety:allowemails (ms-allow, ms-allowemails) : Allow emails to pass.
mailsafety:dashboard (ms-dashboard, ms-sendtodashboard) : Sends all emails to the dashboard.
mailsafety:info (ms-info) : Sets specific email addresses.
mailsafety:setemails (ms-setemails) : Sets specific email addresses.
mailsafety:stop (ms-stop, ms-stopemails) : Stops all emails.
mailsafety:stopanddashboard (ms-stopanddash, ms-stopmailsendtodashboard) : Stops emails and sends them to the dashboard.
Cheers
Matt
Active
2.0
Code