0
私は、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);
});
Mailgunはあなたのアカウントを検証する必要があるので、すべてが正しく設定されていることを確認したいと思うでしょう。 –