balderdashy / sails-hook-email

Sails email hook
67 stars 34 forks source link

Specify layout for my email template #34

Open amitsaxena opened 7 years ago

amitsaxena commented 7 years ago

Not sure if the functionality exists, but it surely isn't documented. I want to use a specific layout for a group of email templates and another layout for another set of emails.

Any pointers around how this can be done?

amitsaxena commented 7 years ago

I couldn't find a solution to this, but I used partials to work my way around it. I created separate partials for different headers and footers, and inserted the appropriate one where needed. Posting here in the hope that it might help someone else.