damianpedziach Posted September 18, 2015 Share Posted September 18, 2015 Hi, i've got a unexplainable problem for me. I've created new module. In this module i'm using Mail::Send function. I've created 4 new email templates called for example a,b,c,d. I put emails in main mails category and i'm sending mail by this function: Mail::Send($this->context->language->id, 'a', 'Topic', $data, null, null, null, null, null, '/mails/'); Sometimes presta is sending e-mail a, sometimes b or c, d. What's wrong? Link to comment Share on other sites More sharing options...
bellini13 Posted September 19, 2015 Share Posted September 19, 2015 I put emails in main mails category and i'm sending mail by this function: I'm not sure what this means. When you create a module, you should put the modules email templates in a subfolder of the module (modules/your_module/mails/<language>/ Mail::Send($this->context->language->id, 'a', 'Topic', $data, null, null, null, null, null, '/mails/'); This code will send email a, because you have used 'a' as the template. Prestashop will not do anything randomly, it will do what you program it to do. And without seeing your module code, I can't tell you how you have programmed the module to send a, b, c or d 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