We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Creating a template for email notifications

Development and Programming

truffl's avatar
truffl
4 posts
about 13 years ago
truffl's avatar truffl

We have a fairly complex html email layout with headers and footers that needs to get sent with each notification email. Is there a way to create and use a template with each of the notification emails? I don’t want to have to repeat the entire header and footer html in each notification.

       
truffl's avatar
truffl
4 posts
about 13 years ago
truffl's avatar truffl

From what I have been able to gather, I’ll have to take the email send hook and wrap the outgoing html with my header and footer.

Is that the approach that you’d suggest or is there a better way to handle this.

       
truffl's avatar
truffl
4 posts
12 years ago
truffl's avatar truffl

I am just talking to myself here.

I did take the email hook and created my own template wrapper. This allow me to send all emails with a rich html header and footer. It was a bit tricky, but works quite nicely.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.