Peace2017 Posted April 24, 2018 Share Posted April 24, 2018 (edited) Hi! What's the path format in the Mail::Send-method? I tried "modules/modulename/mails" and other things Mail::Send( (int)$order->id_lang, 'order_own_mail', Mail::l('Own title', (int)$order->id_lang), $data, $this->context->customer->email, $this->context->customer->firstname.' '.$this->context->customer->lastname, null, null, null, null, 'modules/modulename/mails', false, (int)$order->id_shop ); I get always from the method Error - The following e-mail template is missing In my module there is folder mails and two language folders /en and /de with order_own_mail.htm and order_own_mail.txt each. Thanks for any hint Edited April 24, 2018 by Peace2017 (see edit history) Link to comment Share on other sites More sharing options...
jgamio Posted April 24, 2018 Share Posted April 24, 2018 you are using the correct path try to use dirname(__FILE__) . '/mails/' not 'modules/modulename/mails' 1 Link to comment Share on other sites More sharing options...
Nishith Nesdiya Posted April 27, 2018 Share Posted April 27, 2018 Hi... try to use $this->module->getLocalPath() . 'mails/ Thanks 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