Sending emails using Mailgun with NodeMailer package

后端 未结 3 913
慢半拍i
慢半拍i 2021-02-02 11:01

A couple of days ago I realized that Google has changed the security of gmail accounts, particularly for the possibility of sending emails from applications. After Googling arou

3条回答
  •  春和景丽
    2021-02-02 11:50

    It worked me, when I added the domain also to the auth object (not only the api_key). Like this:

    var auth = {
      auth: {
        api_key: 'key-12319312391',
        domain: 'sandbox3249234.mailgun.org'
      }
    };
    

提交回复
热议问题