Solved

SMTP in azure websites

Posted on 2016-08-01
2
65 Views
Last Modified: 2016-08-05
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
Comment
Question by:SHANCHAT972
2 Comments
 
LVL 14

Accepted Solution

by:
Schnell Solutions earned 500 total points
ID: 41737942
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
 

Author Closing Comment

by:SHANCHAT972
ID: 41744665
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Join & Write a Comment

Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now