• Jack

    (@futuropolis)


    Hi, is there a way we can intercept/redirect email when WordPress is running on a dev environment? We use Postmark, which has a sandbox mode, but I’m not sure how to do it with this plugin. I’d love to be able to configure it based on an ENV variable. That way, whenever WordPress is running on Staging or locally I can be confident that no emails will be sent out.

Viewing 1 replies (of 1 total)
  • Thread Starter Jack

    (@futuropolis)

    Ok, I think the solution would be:

    1. Setup a new Server in my Postmark account with type “Sandbox”
    2. Set these based on the ENV:
      define( ‘POSTMARK_API_KEY’, ” );
      define( ‘POSTMARK_STREAM_NAME’, ‘stream-name’ );

    Will that be enough?

Viewing 1 replies (of 1 total)
  • The topic ‘Sandbox or redirect all outgoing mail on a dev environment’ is closed to new replies.