私のemail.sendは機能していますが、1人のユーザーにのみ電子メールを送信している場合のみです。meteor.method 内のコードは次のとおりです。
sendEmail: function (to, from, subject, text) {
check([to, from, subject, text], [String]);
this.unblock();
Email.send({
to: to,
from: from,
subject: subject,
text: text
});
}
});
作業中のクライアント コード:
Meteor.call('sendEmail',
'yechielxxx@gmail.com',
'boazxxx@gmail.com',
'test',
'testing meteor email');
動作していません:
Meteor.call('sendEmail',
['yechielxxx@gmail.com','boazxxx@gmail.com','boazxxx@walla.co.il'],
'boazxxx@gmail.com',
'test',
'testing meteor email');
ここで何が欠けていますか?これはdocs.meteorが「to String or Array of strings RFC5322 "To:" address[es]」と言っているものです
ユーザーの配列を使用すると、すべてが正常に機能するはずです。