Jump to content

Disabling email notifications when in Maintenance?


4thbasement

Recommended Posts

you can use add a piece of code in following class or its override class and check if it is under maintenance mode, it is, then do not send email just return.

 

/classes/Mail.php

 

or (recommended)

 

/override/classes/Mail.php

 

 

public static function Send($id_lang, $template,.......
{
            if(Configurartion::get('PS_SHOP_ENABLE') != 1)return true;

......

}

Link to comment
Share on other sites

I am not aware of any way to do that via normal store configuration. 

 

And I think it is also makes sense because even you are in maintenance mode, for testing purpose you will still need emails. but you just want to avoid send email to real customers. it might be a good idea to have configuration to send all email to a specified email address. :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...