How to redirect an email sent to my azure website onto a customers email on another domain

前端 未结 1 1698
旧巷少年郎
旧巷少年郎 2021-01-27 22:03

http://blog.smarx.com/posts/emailtheinternet-com-sending-and-receiving-email-in-windows-azure explains how to listen on a port for incoming email.

I want to grab the ema

1条回答
  •  抹茶落季
    2021-01-27 23:02

    There is no such thing as an email sent to my azure website!

    E-mails follow different path from the HTTP traffic. And this is controlled by the DNS entries. Your mycompany.com domain may be WEB hosted in Azure WebSites, while the mails for anyone@mycompany.com be handled by Google Apps for Business for instance. Which server handles the e-mails for your domain is controlled by the MX records for that domain. Moreover e-mail runs on ports quite different from the Web Traffic.

    Having said that, I want to assure you that no e-mail will ever reach your application hosted in Azure Web Sites.

    What you can do is any of the following:

    • Create an extra small WorkerRole, enable IIS and E-Mail (SMTP) server role, configure to just forward the e-mails
    • Just use Google's e-mail service for custom domains (paid of course) or Office365 or the cheapest web hosting provider that offers a mail hosting, and then configure mail forwarding for the account

    The concrete implementation of any of the suggested approaches can be found with a simple Internet search.

    0 讨论(0)
提交回复
热议问题