0
私はmailgunに新しいドメインを追加し、それも正常に検証しましたが、そのドメインから電子メールを送信できません。私は電子メールを送信するためにmailgun APIを使用しようとしています。私はMailgunサンドボックスドメインから電子メールを送信できますが、自分のドメインからは電子メールを送信できません。私は、次のしている私のユーザーのサインアップ関数内でも新しいドメインを設定した後でMailgunから電子メールを送信できない
var api_key = 'api-key-here';
var domain = 'https://api.mailgun.net/v3/MY-DOMAIN-NAME.com';
var mailgun = require('mailgun-js')({apiKey: api_key, domain: domain});
:
var data = {
from: 'Excited User <[email protected]>',
to: email,
subject: ' Account Verification',
text: 'Please click on the following link, or paste this into your browser to complete the process:\n\n' + 'http://' + req.headers.host + '/verify/' + token + '\n\n'
};
mailgun.messages().send(data, function(error, body) {
console.log("sending email ")
});
それは、電子メールを送信していないと何もに現れない
は、私は私のコードに次のように行われていますドメインログも同様です。 私が間違っていることは何ですか?
これは機能しました!ありがとうございました! – Skywalker