Support » Plugin: Postman SMTP Mailer/Email Log » Feature Request: disable email on staging by url match

  • We use Postman SMTP on 50+ sites with a spectrum of SMTP services (Gmail, SendGrid, Mandrill, Amazon SES, more…). It’s _awesome_ and we love it.

    One thing that bites us regularly is that while we’ve disable outgoing mail leaving our staging/development servers, Postman’s API connection jumps that.

    It’s would be super handy to have a filter which we could use to disable email sending if we were on a certain URL.

    Psuedo code
    if strpos($site_url, ‘.dev’) { add_filter( ‘postman_disbale
    _email’, __true ); }

    If we could add that to our site’s code base than we could selectively disable outgoing email if we’re on a specific url (like site.dev or staging.site.com).

    Bonus if the email still go to the log, but the log reports “sending disabled”.

    • This topic was modified 6 years, 6 months ago by Jon Brown.
  • The topic ‘Feature Request: disable email on staging by url match’ is closed to new replies.