Using email-templates (for nodemailer) with Loopback Mail
909 views
Skip to first unread message
Abou Kone
unread,
Feb 23, 2015, 9:44:55 AM2/23/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to loopb...@googlegroups.com
I know Loopback uses nodemailer for handling email and email-templates is a good template engine to use with nodemailer. I would like to use it to pretty up my welcome and verification emails but digging into the code, it seems that at the end of the day the template is compiled using Loopback.template() when it comes down to it. Is there a way to integrate email-templates with Loopback.template?
Bryan Clark
unread,
Feb 23, 2015, 9:21:48 PM2/23/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
I'm not aware of other methods, like a welcome mail but I agree that the email template system could use some organization.
~ B
Abou Kone
unread,
Feb 24, 2015, 4:21:16 PM2/24/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to loopb...@googlegroups.com
Yeah the ability to specify your pre-compiled templates would really be useful here. I am still looking for a way to hack it. I know LB needs the template to compile it with the locals object but there might me some feature in email-templates or Loopback.template to inline the CSS needed by the template.