0
我想发出一个非常基本的电子邮件附件。电话执行时我一直在收到电子邮件,但我的附件总是被丢弃。收件人电子邮件目前是Gmail。我不知道如果我的代码是不正确,如果我的语法不正确,但我接受所有,但我的执着。我查阅了邮件撰写者的文档,并且似乎符合这些标准。我哪里错了?流星邮件附件下降
这里是服务器代码:
Meteor.methods({
sendEmail: function (to, from, subject, text,attachments) {
check([to, from, subject, text], [String]);
this.unblock();
Email.send({
to: to,
from: from,
subject: subject,
text: text,
attachments :[
{ // encoded string as an attachment
filename: 'text1.txt',
contents: 'aGVsbG8gd29ybGQh',
encoding: 'base64'
},
]
});
}//End SendMail funct.
});//End Method