Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

SMTP in azure websites

Posted on 2016-08-01
2
Medium Priority
?
453 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 2000 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Considering cloud tradeoffs and determining the right mix for your organization.
The core idea of this article is to make you acquainted with the best way in which you can export Exchange mailbox to PST format.
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 …
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

722 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