1
我正在使用Bert和流星电子邮件。在我的流星ME中,我返回发送电子邮件的成功。问题是,在发送电子邮件后,它不会返回成功消息。流星电子邮件成功提醒
这里是我的示例代码,
Meteor.call('sendEmail',
data.eadd,
'[email protected]',
'Invitation',
'test');
return "successful.";
这里是我的sendEmail功能,
sendEmail(to, from, subject, text) {
check([to, from, subject, text], [String]);
this.unblock();
Email.send({
to: to,
from: from,
subject: subject,
text: text
});
}
[如何让Meteor.Call返回模板的值?](http://stackoverflow.com/questions/10677491/how-to-get-meteor-call-to-return-value-for - 模板) – rubie
看看这个问题/答案 - http://stackoverflow.com/questions/10677491/how-to-get-meteor-call-to-return-value-for-template - 是你在找什么对于? – rubie