通过http请求通过Malign发送消息
问题描述:
我试图通过使用Mailgun的http请求发送消息,系统给我回200 OK,但消息从不发送。通过http请求通过Malign发送消息
这里我的代码,(我运行我的代码解析httpReuest函数)任何想法?
Parse.Cloud.httpRequest({
url: 'https://api:[email protected]/v3/MYDOMAIN.net/message',
params: {
from: '[email protected]',
to: '[email protected]',
subject: 'Hello',
text: 'Testing some Mailgun awesomness!'
}
}).then(function(httpResponse) {
console.log('Request response ' + httpResponse.error);
}, function(httpResponse) {
console.error('Request failed with response code ' + httpResponse.status);
});
答
我找到了答案...我在api调用中发现错误,正确的调用是。
url: 'https://api:[email protected]/v3/MYDOMAIN.net/messages',
与消息没有消息
忘记和s,浪费了整整一天:-(
什么你Mailgun日志说什么?你怎么知道是没有得到发送的消息? 我相信Mailgun要求您验证您的帐户,因此您也需要确保所有内容均已正确配置。 –