-
Notifications
You must be signed in to change notification settings - Fork 4
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
enhancement: disable admin_notice #14
Comments
Thanks for the report about the plugin conflict. If I understand you properly, this problem surfaced when using your plugin Quick Mail. However, it sounds like the problem is how Stop Emails and the Mailgun plugin interact. I'm hesitant to add a setting (or a filter) to disable the admin notice because I really want to avoid the situation where emails are being stopped and the website owner is oblivious to it. Can you help me understand how disabling the Stop Emails admin notice would help in your situation? Is your thought to disable the message on a specific site? or add code to your plugin to disable the notice? or something else I haven't thought of? 😀 I'd like to help address this problem but I also want to be cautious in what changes I make. Thanks again for bringing this up and I would greatly appreciate your further feedback. Thanks. |
Hello @salcode, Somebody using Stop Emails with Quick Mail would see admin notice and think mail was disabled. Similar result using Quick Mail without Mailgun. Only difference was a dumped array with message info in PHP error log. Quick Mail sends message using wp_mail(), despite warning. Best wishes, |
Hi @mitchelldmiller, I installed Quick Mail and Stop Emails on a test site running WordPress
In Quick Mail Settings, I checked and clicked I'm using Local by Flywheel which comes with MailHog, so I opened that browser tab. Then using Tools > Quick Mail, I created a test mail with subject "test" and message "test". then I clicked I did not see any emails in MailHog (expected result) Then I changed the Stop Email setting to log outgoing emails Once again, I clicked Still no mail in MailHog but this time the email was logged to my error log. (expected result)
Finally, I deactivated the Stop Emails plugin
and clicked This time the email does appear in MailHog. (expected result) I suspect there is another plugin conflict is causing the problem (e.g. the MailGun may be overriding email in a way that overrides Stop Emails). Of course, other factors can vary (or I may be missing something) so if you have a set of reproducible steps to recreate the error, I'd be happy to look into this further. |
If you want to make sure the Stop Emails plugin does not run, you can add some code to deactivate it, if the plugin is active. This code checks for the Stop Emails plugin every time a backend page loads, if the plugin is active it deactivates it.
|
Hello @salcode , Same result. Mailgun is not affected. The screen fills with error_log output. You might want to replace the error_log() if WP-CLI is active.
This would confuse your plugin's users. I will add Stop Emails info to FAQ. Best wishes, |
Thanks for the information. I just opened #15 regarding behavior via WP CLI. 👍 |
Hello @salcode , I added info to latest Quick Mail readme. Best wishes, |
Thanks @mitchelldmiller, I've added SparkPost to wiki/Known-Incompatible-Plugins |
This conversation went in a helpful direction and allowed me to add some new entries to the Known Incompatible Plugins in the Wiki. Since the original focus of the issue, "disable admin_notice", is not a change I'm going to make, I'm going to close this issue. |
Hello Sal:
I just tested Stop Emails with my Quick Mail plugin, on a site using Mailgun plugin to send mail.
Message was sent, despite warning.
Please consider adding a setting to disable admin notice.
Best wishes,
Mitchell
The text was updated successfully, but these errors were encountered: