Solved

SMTP in azure websites

Posted on 2016-08-01
2
221 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
[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: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

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!

Question has a verified solution.

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

Suggested Solutions

An analysis of the phishing scam that has been affecting Google users, along with steps to take for protection, as well as what to do if you receive one of the emails.
This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

710 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