Jump to content

How not to receive an email from webshop


AndersHelbo

Recommended Posts

If you don't want to receive emails at all, alternatively, you may override Mail::Send() method such as

 

public static function Send($id_lang, $template, $subject, $template_vars, $to,
$to_name = null, $from = null, $from_name = null, $file_attachment = null, $mode_smtp = null,
$template_path = _PS_MAIL_DIR_, $die = false, $id_shop = null, $bcc = null)
{
    return true;
}
 
  • Like 1
Link to comment
Share on other sites

  • 1 month later...

 

If you don't want to receive emails at all, alternatively, you may override Mail::Send() method such as

public static function Send($id_lang, $template, $subject, $template_vars, $to,
$to_name = null, $from = null, $from_name = null, $file_attachment = null, $mode_smtp = null,
$template_path = _PS_MAIL_DIR_, $die = false, $id_shop = null, $bcc = null)
{
    return true;
}
 

 

Thanks. But where exactly do I insert this code?

Link to comment
Share on other sites

would it not be simpler, rather than making core changes, to simply set up mail rule in say outlook, to put those messages into a folder?

 

this is because you are not 1)  experienced enough to implement an 'untested' solution 2) you would lose change on upgrade 3) there may be repercussions that you will not immediately see.

 

moving topic to development.

 

tip: you may want to consider posting in job offers to implement this.

  • Like 1
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...