Chillax86 Posted September 29, 2013 Share Posted September 29, 2013 How do I get this mail function to use a mail template stored in /shop/modules/myModule/mails/gb/ Mail::Send( (int)$order->id_lang, 'template', Mail::l('a subject', (int)$order->id_lang), $data, $this->context->customer->email, $this->context->customer->firstname.' '.$this->context->customer->lastname, null, null, null, null, _PS_MAIL_DIR_, false, (int)$order->id_shop Link to comment Share on other sites More sharing options...
Chillax86 Posted September 29, 2013 Author Share Posted September 29, 2013 it's ok just figured it out "_PS_MAIL_DIR_" should be "dirname(__FILE__).'/mails/'" Link to comment Share on other sites More sharing options...
PascalVG Posted September 29, 2013 Share Posted September 29, 2013 Hi Chillax, thanks for the feedback! pascal Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now