Hi there!
Which package are you using to send emails? Right now we’re using Mailgun with custom email templates using the default emails package! So far we’re not running into any issues.
This is an example of using a non-built in email type:
adminMailer = function(to, from, subject, conObj, type, admin, message, reason){
if(type == 'contact'){
SSR.compileTemplate('htmlEmail', Assets.getText('emails/contactRequest.html'));
var emailData = {
admin: admin,
userMessage: conObj.message,
adminResponse: message,
};
}
var html = SSR.render('htmlEmail', emailData)
Email.send({
to: to,
from: from+' <'+from+'>',
subject: subject,
headers:{"sender":"APP Staff <staff@APP.com"},
html: html
})
}
And an example using a built-in type, in this case Reset Password:
Accounts.emailTemplates.resetPassword = {
subject() {
return `Password Reset Request`;
},
html(user, url) {
SSR.compileTemplate('htmlEmail', Assets.getText('emails/resetPassword.html'));
var emailData = {
username: user.username,
url: url,
};
return SSR.render('htmlEmail', emailData)
}
};
Not sure if these examples help you or not, so sorry if they don’t!