Solved

SMTP in azure websites

Posted on 2016-08-01
2
315 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:Arikkan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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:Arikkan
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

Industry Leaders: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
This article outlines some of the reasons why an email message gets flagged as spam on a recipient's end.
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…

635 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