【发布时间】:2017-08-28 08:26:29
【问题描述】:
我正在使用Accounts.emailTemplates.enrollAccount.html。
我可以使用此代码成功发送电子邮件:
Accounts.emailTemplates.enrollAccount.html = function(user, url) {
return '<h1>Thank you </h1><br/><a href="' + url + '">Verify eMail</a>';
};
但我想做的是,我有一个名为email.html 的外部文件,我想将该文件作为电子邮件发送。
我的代码
Accounts.emailTemplates.enrollAccount.html = function(user, url) {
// i want to send email.html file from here or if you have other way
};
谢谢。
【问题讨论】: