How to receive emails with mailgun in Node.js?

谁都会走 提交于 2019-12-11 22:11:58

问题


I'm already using mailgun to send some data to an email (my gmail account). Now I want to receive emails using @mydomain.com

I saw this other question with 2 answers that seem useless.

I have already set a Route so I receive any msg send to *@mydomain.com* and to forward them to my personal email at gmail:

http://i.imgur.com/VJBz6ij.png

So I tried sending an email to my personal gmail but I'm not receiving any emails.

I have my website on a VPS in digital ocean in case that is important.


回答1:


So I just needed to add the MX records to DigitalOcean provided by mailgun here:

http://i.imgur.com/Y4bmJYh.png

(link for more info: https://documentation.mailgun.com/user_manual.html#verifying-your-domain)

Now I send data from another email to example@mydomain.com and then I recieve it.

When I try sending data to example@mydomain.com from the same domain that is set in the forward rule it does not work so try with a third party email it you have any problems.



来源:https://stackoverflow.com/questions/38019907/how-to-receive-emails-with-mailgun-in-node-js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!