0
我正在使用Accounts.emailTemplates.enrollAccount.html
。 我可以成功使用此代码发送电子邮件:如何在流星中发送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
};
谢谢。