Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 594
  • Last Modified:

SMTP in azure websites

I have a website hosted on my server that has a page for "contact us". This uses SMTP server to send email to some people.
It works fine on the local server with connection to SMTP server for mail relay. We are using .Net libraries to send the email.

Now I want to move this website to Azure websites.
Here the SMTP functionality fails as there is no SMTP server.

What is the SMTP server I should connect to in Azure.
This seems to be simple, but I have no idea about how to set this up.
Can anyone help me out?
0
Arikkan
Asked:
Arikkan
1 Solution
 
Schnell SolutionsSystems Infrastructure EngineerCommented:
Hello ShanChat,

On your premises you were using a local SMTP server. Even if your website server is now running from Windows Azure you continue requiring an SMTP server somewhere.

Here there are some options, and them we can continue discussing forward how to work on it depending on your desired option:

1. If you are using a VPN connection to communicate your Microsoft Azure server to your local network (where your SMTP server is located), you can continue using your current local SMTP server. However, you require routing communication, internal name resolution*, firewalls access, and so on.

2. If your Microsoft Azure server is not connected to your local network, you can still use your SMTP server through the Internet. It means that you can configure your web server to communicate with a public IP Address that forward the communication to your SMTP server and then it can forward your emails.

3. You can use your Microsoft Azure server to point and use a third party SMTP server outside from Azure or a customized created SMTP server on Microsoft Azure.

4. And the last option, provably the one that is more logical (and I am pretty sure that it is the one that you are looking for)... You can configure an SMTP service on Azure, and after you have your SMTP service configured, you can point your web server to use this service. Details for creating an Microsoft Azure SMTP service (SendGrid) are listed here: https://azure.microsoft.com/en-us/documentation/articles/sendgrid-dotnet-how-to-send-email/
1
 
ArikkanAuthor Commented:
I implemented the sendgrid (With Basic Free plan) feature in my Azure site that I hosted. Only things I needed were:

SMTP Server:
Port
Username
Password

All these were mentioned in the documentation very well.


Thanks a lot.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now