Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable SparkPost mailer using a PHP constant #149

Open
mathieuhays opened this issue Jan 4, 2019 · 0 comments
Open

Disable SparkPost mailer using a PHP constant #149

mathieuhays opened this issue Jan 4, 2019 · 0 comments

Comments

@mathieuhays
Copy link

I'm running the SparkPost plugin on a website I'm developping locally and then deploy to a production environment. My development environment include an email catcher that prevent emails to be sent by accident to the members of that website. My issue is that SparkPost bypasses that email catcher, probably due to the fact that the plugin is using HTTP instead of SMTP.

I usually disable the plugin locally but I do forget from time to time (when copying the production database locally to debug issues).

One solution would be to add a constant I can set on my local config that disables Sparkpost's mailer and fallbacks to WordPress' one.

example:

<?php // local-config.php

define('WPSP_DISABLE_MAILER', true);
maxharrisnet pushed a commit that referenced this issue Sep 17, 2020
Revert "AC-1552 Logging to Determine if file requests make it to PHP code"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant