Currently, turning on this plugin simultaneously disables the interface for functions.php
under WP’s Theme file editor, which says since it can’t check for fatal errors (presumably because such emails can no longer be sent out) it’s going to revert any changes you make there and you have to edit via FTP instead.
Is there anything you can do to work round this?
]]>I would like to verify if Disable Emails is compatible with PHP 8.2. ?If not, do you have a timeframe when the plugin will be tested and released with 8.2 compatibility?
]]>When I activate your disable emails plugin on my site, I get the following error:
wp_mail has been declared by another process or plugin, so you won’t be able to use ElasticEmailSender until the problem is solved.
how can this be fixed?
]]>Hi guys, great plugin and works perfect. I am just hoping to find a way to allow notification / admin emails come through from Wordfence. Ultimately I just need emails to only be sent to the admin email address and nothing to user accounts. Thanks
]]>Hi Supprt,
We are using your plugin on staginag but after installing the plugin email are still fireing can you please let us know is your plugin configue with any other plugins.
]]>Hello, I am running a buddypress WordPress plugin, BuddyBoss. On one of the pages they display the EMAIL TEMPLATE to send invitations from their Members to prospective members in a window on a page. It displays the HTML version of the email template.
When the Disable Emails plugin is DISABLED, the HTML version of the template displays. When the Disable Emails plugin is ENABLED, the PLAIN TEXT version displays.
This is unfortunate because I use the Disable Emails plugin on my staging sites all the time to prevent extraneous emails being sent during testing. I use my Staging sites to also develop training videos. So this means that I must disable the plugin to create any videos that involve the Invitations feature.
I appreciate your assistance. I will provide credentials should you need them. I have 1.8.1 installed.
Thank you, NoN Universe
]]>Is there some way to install this on live and then disable it via a filter or constant or such for that domain? We spin off staging sites a lot for various temporary uses, ie speed testing, new feature, whatever. Having it already there and enabled for any non-live URL would save us from having to install it each time, or worse, forget and have the client hounded with staging-only error emails.
Thanks!
]]>Hello,
I installed WordPress 6.0 yesterday. This error did not occur until this update. Now, when I send emails on my development site. I get a critical error. Since this is my development site, I’m not too worried, but I am worried about my staging site, where I use the same plugin. I did isolate the issue and it is definitely an error that only happens when Disable Emails is activated.
Here is the error that is captured:
[26-May-2022 06:24:14 UTC] PHP Fatal error: Uncaught PHPMailer\PHPMailer\Exception: Invalid address: (to): in /home/urknownc/notify.ur-known.com/wp-includes/PHPMailer/PHPMailer.php:1092
Stack trace:
#0 /home/urknownc/notify.ur-known.com/wp-includes/PHPMailer/PHPMailer.php(1014): PHPMailer\PHPMailer\PHPMailer->addOrEnqueueAnAddress('to', '', '')
#1 /home/urknownc/notify.ur-known.com/wp-content/plugins/disable-emails/includes/class.PHPMailerMock.php(227): PHPMailer\PHPMailer\PHPMailer->addAddress('', '')
#2 /home/urknownc/notify.ur-known.com/wp-content/plugins/disable-emails/includes/class.PHPMailerMock.php(126): webaware\disable_emails\PHPMailerMock->_addTo('')
#3 /home/urknownc/notify.ur-known.com/wp-content/plugins/disable-emails/includes/bootstrap.php(23): webaware\disable_emails\PHPMailerMock->wpmail('', '', '<!DOCTYPE html>...', '', Array)
#4 /home/urknownc/notify.ur-known.com/wp-includes/user.php(2621): wp_mail('', '', '<!DOCTYPE html>...', '')
#5 /home/urknownc/notify.ur-known.com/wp-admin/includes/user.php(227): wp_update_user(Array)
#6 /home/ in /home/urknownc/notify.ur-known.com/wp-includes/PHPMailer/PHPMailer.php on line 1092
I would appreciate your assistance.
Best Regards,
NoN Universe Administrator
Hello,
Could the receivers to
be added to the phpMailer? I’m creating a plugin which uses phpmailer_init
action and tries to get the data from phpMailer, but the receivers are not added. This is what I came up with (taken from WordPress’ phpMailer), to be added after extract( apply_filters( 'wp_mail', ... ) )
if ( ! is_array( $to ) ) {
$to = explode( ',', $to );
}
foreach ($to as $address) {
$recipient_name = '';
if ( preg_match( '/(.*)<(.+)>/', $address, $matches ) ) {
if ( count( $matches ) === 3 ) {
$recipient_name = $matches[1];
$address = $matches[2];
}
}
$this->phpmailer->addAddress($address, $recipient_name);
}
]]>
Hi,
Thank you very much for this perfect plugin.
It’s now fully translated into French.
https://translate.www.ads-software.com/projects/wp-plugins/disable-emails/
Enjoy it!
]]>Hi,
I would like to be 100% sure that emails are disabled on a development site with real user data. At the same time I would install an email log, to be able to see which emails would be sent (but of course won’t be because of your activated plugin).
Question:
Will this scenario work?
What if I deactivate the plugin? Could it happen that there is an email queue and suddenly it sends out all emails?
Thanks
Markus
]]>does it good for speed?
]]>Hi,
I’ve one question to understand your plugin better. First I appreciate the thoughts of reducing email spam and email phishing.
Normally, websites like social networks with WP/BP use a registering page with email verification or a page for password reset. Does this still work? Sometimes it is important that an admin can send out necessary information, ist this possible too? If not, how is it possible to enable my wishes above?
Thank you in advance for helping me ??
Regards,
Thorsten
Unfortunately I have a very serious problem caused by installing your plugin.
The problems are as follows:
1. After disabling your plugin, the icon in the top bar is still active
2. at that point I deleted your plugin and even after this no email is sent never
3. all emails from contact forms and woocommerce after orders no longer work.
At this point I have conducted several tests
1. I changed several theme as suggested in this forum
2. I installed the wp smtp email plugin.
with this the outgoing only test emails from the plugin work
3. I tried a direct php script to send email and in that case the emails work
4. I have disabled all plugins except woocommerce and even in this case the problem is not solved.
5. we did the tests with the hosting server and everything is fine (the old copy backup of the site works)
What should I do now to restore my store?
Does the plugin install additional files, add a few lines of code elsewhere or in the database?
What should i check?
Thank you
Why keeping the “Requires at least” version tag so high in the readme.txt such as this plugin will not work on any website with older WordPress version?
This plugin is often used as a development plugin on dev sites, which are often not updated (because this is precisely the work being done at the moment!).
Not being able to install the plugin on any old WordPress isn’t very useful.
Of course, I open myself the archive and edit the Requires at least
tag to a lower value, but still…
This plugin is great. The only thing I think it needs to do is to allow some exceptions as sending reset password email, and similars.
]]>The preview could not be loaded not found 404
]]>Are there any hooks that allow to turn the functionality of the plugin on/off (lets say if I switch from prod to staging, I can automatically enabled Disable Email in staging w/ a filter), or a way to exclude emails and allow them to be delivered (say a corporate domain where those emails we can allow deliverability, but nothing else).
]]>I was testing with plugins and I have WP Mail Logging by MailPoet installed and was experimenting with Disable Emails.
After enabling Disable Emails, when I select a mail in WP Mail Logging’s mail log (checkbox) and choose the bulk action “resend”, your plugin throws an unhandled fatal error. Yes, I realize trying to send mail when it’s disabled is stupid, but bear with me please.
So the mail logging plugin tries to resend the mail, with an $attachments variable that is “” (a 0-byte string), which is then exploded on “\n” (just like WP core does) resulting in an array with 1 item (so not an empty array, even though the 1 item is a 0-byte string). Your plugin has set up $phpmailer as PHPMailerMock, and when it reaches the part for handling attachments, it calls $this->phpmailer->AddAttachment($attachment);
which then expectedly throws a phpmailerException
(because an empty string is not an existing file). This is good.
However, while you do have a try/catch for phpmailerException
in your plugin, it doesn’t work, because “phpmailerException” is an undefined class. You need to add use \phpmailerException;
to the top of your mock file be able to catch phpmailerException exceptions.
See? I did something stupid, but found a bug that’s not stupid. ??
]]>Hi,
The button to make Disable Emails a “Must-Use plugin” throws an error if the directory specified by the WPMU_PLUGIN_DIR constant (typically “wp-content/mu-plugins”) doesn’t exist (and it doesn’t by default). Before copying, please check if it exists and if it doesn’t create it using wp_mkdir_p().
Thanks!
PS. on an unrelated note: I’d like to have both the admin notice AND the toolbar indicator. Maybe that could be an option?
]]>Hi. Please fix using $_SERVER[‘SERVER_NAME’] without isset() in your plugin because when using WP-CLI, this variable is undefined.
]]>hi,
i have tried your plugin but it still sends out woocommerce orders notifications.
i import users first and then orders, when orders get imported the system send out 3 mails to the customers.
i also tried with Must-use plugin enabled
any ideas how why?
warm regards B
]]>I’ve been trying desperately to figure out a way to NOT have a new post email go out every time I update my blog. I use Mailchimp to send newsletter notifications. So it’s super frustrating to have WordPress duplicate my efforts with their generic, ugly emails. I don’t understand how no other blogs I’m subscribed to have this generic WordPress email notification go out with their new blog posts. I can’t get them to stop so I installed this plug-in today and did a new blog post and was so excited. Sure enough, a new post notification email was sent out just like normal. What could the issue be?? Thank you.
]]>Hello.
Thank you for this simple but valuable plugin!
I use it to stop sending emails while I set up a user. After the user is all set up, I send the emails by resending.
I recently changed from Sparkpost to using Amazon SES.
I’m using this plugin:
https://www.ads-software.com/plugins/wp-ses/
However, when WP SES is active, the Disable Emails plugin gives this error notice:
Emails are not disabled! Something else has already declared wp_mail(), so Disable Emails cannot stop emails being sent!
My question: is there a way I can use your plugin and the WP SES plugin together?
Thank you.
]]>Hi ??
I am using the MailPoet 3 plugin to send regular post notifications to subscribers, but the WP default notification emails are sent out as well. Will your plugin stop the default notifications while allowing the MailPoet 3 notifications? Thanks so much in advance ??
]]>I suggest a function to setting the exclude email address (specific email address like [email protected] or domain such as @example.com)
Because we need to disable sending email for developing site, but we need to test send out email content. So we need to allow send out email to specific email address or our own email domain.
Hope this function come true soon.
Thanks!
]]>1- I have created a site for tests, I have installed and activated Ninja Form.
2- I have sent test messages and received them correctly.
3- I have installed and activated the “Disable-Emails” plugin
NOTE: I stopped receiving the Ninja Form e-mails.
4- I installed, activated and configured the “Easy WP SMTP” plugin
5- I tried to send e-mails from the “Test” tab of Easy WP SMTP and I received the e-mails correctly.
NOTE: E-mails from Ninja Form do not work either
How do I configure Ninja Form to use SMTP?
I want to disable the default WordPress functions but I want Ninja Form to continue working.
]]>Hello!
I’m currently in the process of manually (aka painfully) moving over a bunch of orders from our current system that doesn’t have an export functionality. This means I am manually creating the users, importing them, and recreating their orders in WooCommerce.
I obviously don’t want them to get any emails at all about this since I’m adding a few years of orders into the backlog.
I want to confirm that when I have this plugin on it will..
1. Disable ALL WooCommerce + New User notifications
2. NOT send everything as soon as I deactivate it (meaning it doesn’t build a log or anything, correct? The emails are gone forever?)
3. Removing the plugin will allow me to continue using WooCommerce as per the normal, as as soon as I have the users imported into my development site I want to push it live, remove this plugin, and carry on using this as the new order system.
Thank you so much!
]]>Hello! I am about to do a 50-post drop on my site, and to test the function of this plugin, I subscribed to my own site via email to test it using the Jetpack subscriber function. When a post went up this morning, I received an email. How can I make this work?
]]>Hi there
I’m just checking that when I deactivate this plugin and delete it, that my WP email function will return to normal?
Many thanks
R