Jump to content

Which path for Mail::Send if I have an own mail template?


Recommended Posts

 

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 by Peace2017 (see edit history)
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...