我设法弄清楚如何通过 Mandrill 发送电子邮件并使用 Back4App 解析云代码。检查 Mandrill 的 API 日志时,我看到以下内容:
Full Request
{
"message": {
"text": "asdf Email Test",
"subject": "adsf Email Test",
"from_email": "no-reply@asdf.ca",
"from_name": "Site",
"to": [
{
"email": "myemail@gmail.com",
"name": "Martin",
"type": "to"
}
],
"headers": {
"Reply-To": "no-reply@adsf.ca"
}
},
"async": false,
"ip_pool": "Main Pool",
"send_at": "2018-03-13T17:14:41.645Z",
"key": "oc7ueJMLRGgaEDrjhk5DBg"
}
Full Response
[
{
"email": "myemail@gmail.com",
"status": "queued",
"_id": "7c28e80e4de1405f93d1d096600128d4",
"reject_reason": null
}
]
似乎代码正在正确执行,但响应正文表明电子邮件已排队。我决定等待 24 小时,但没有任何改变。我发送了更多测试电子邮件,得到了相同的结果。基本上,电子邮件没有发送。到底是怎么回事?