Created on 8 July 2024, 5 months ago
Updated 10 July 2024, 5 months ago

Problem/Motivation

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.

Proposed resolution

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

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom mattyb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024