Parse platform 可以要求Mandrill试运行电子邮件发送吗?(解析云代码)
我正在使用Parse platform 可以要求Mandrill试运行电子邮件发送吗?(解析云代码),parse-platform,parse-cloud-code,mandrill,Parse Platform,Parse Cloud Code,Mandrill,我正在使用解析云作业向所有1000名使用Mandrill的用户发送电子邮件。目前,我使用的是Parse.Cloud.httpRequest,如下所示: function sendNewsletterWithMandrill(info) { var mandrillBody = computeMandrillBodyFromInfo(info); // takes a while per user return Parse.Cloud.httpRequest({
解析云作业
向所有1000名使用Mandrill的用户发送电子邮件。目前,我使用的是Parse.Cloud.httpRequest
,如下所示:
function sendNewsletterWithMandrill(info) {
var mandrillBody = computeMandrillBodyFromInfo(info); // takes a while per user
return Parse.Cloud.httpRequest({
method: 'POST',
headers: {
'Content-Type': 'application/json;charset=utf-8'
},
url: 'https://mandrillapp.com/api/1.0/messages/send-template.json',
body: mandrillRequestBody
});
};
我希望测试此实现是否在Parse Cloud Job
s具有的15分钟内运行
i、 我希望我的代码花时间计算电子邮件正文,并实际执行请求,但不实际发送电子邮件
我怎样才能做到这一点?干杯。您可以在Mandrill中创建一个测试api密钥,如果电子邮件正常,它将发出请求并给出肯定答复,但不会发送电子邮件