Jump to content

Different mail template to registered users


Miguel F

Recommended Posts

You can override the Mail class and in this way you have controll of all the emails that are sent through presta

class Mail extends MailCore
{
	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)
	{
		switch ($template)
		{
			// do whatever you wish
		}
	}
}

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...