Umbraco CMS in Azure unable to send email to new user - umbraco

I create a Umbraco CMS Web App in Azure. I login to the back-office of the Umbraco CMS and try to create new users on there. However, there is no email send to new users ether try create user or invite user.
It may related to SMTP settings in Umbraco, can I add it to the "Application Settings"of the Web App? Anyone try this before?

Add mail settings to your web.config like you would other ASP.NET applications:
<system.net>
<mailSettings>
<smtp from="noreply#example.com">
<network host="127.0.0.1" userName="username" password="password" />
</smtp>
</mailSettings>
</system.net>
The Umbraco Cloud documentation also pertains to other hosting enviornments such as Azure Web Apps and gives some suggestions for SMTP services.

Related

Why is our server sending multiple copies of one email?

Overview
From our MVC web app we are sending emails. We send 2,000 each time, once per day.
We send the emails one at a time to Postmark to process and deliver.
The connection with Postmark is via SMTP which is setup in Web.Config:
<mailSettings>
<smtp deliveryMethod="Network" from="name#domain.com">
<network host="smtp.postmarkapp.com" port="587" enableSsl="true" defaultCredentials="false" userName="username" password="password" />
</smtp>
</mailSettings>
We're using Postal in our app for email templating, etc.
foreach(var user in users)
{
var email = new Postal.Email;
{
EmailTo = user.Email,
Subject = "Subject",
//other email content
};
//Send email
email.Send();
}
Our web app is on Azure in a Web App service.
The processing and sending is being done in a background method using Hangfire with no automatic retries.
Problem
There is a small percentage (exact percentage not known) of recipients that are consistently receiving duplicates or triplicates of these emails each day. We haven't noticed a pattern with the ones receiving more than one (i.e. that they're from the same domain, etc.).
In our code, the email details and content are created in a loop and fired off one at a time. We've added logging in our code to verify that we're really only creating one email to the people receiving duplicate and triplicate emails.
We've talked to Postmark about any ideas they have. They said they didn't think it was them. I've looked in the headers of the emails via the Postmark UI and the duplicates have unique message Id's.
Question
Are there things that can happen with the way emails are handled when lots of them are being fired off in short succession using SMTP in an MVC app? Is there a way to log what is actually being sent from the app/server?

When browse from web server, Windows authentication not working

I have two servers,
WEB01_Server
APP01_Server
So my ASP.NET MVC application has two Projects
Sample_Web
Sample_Service
So my application architecture like following
so both these projects I hosted in APP01_Server So I enable the windows authentication(using IIS) for Sample_Web project and once I browse this web project in App server URL windows login prompt coming and successfully able to log in.
Once I browse with WEB01_Server URL, it also windows AD login prompt coming and but cannot log in.
Additionally, I enabled Windows authentication in WEB01_Server this application IIS web site instance and result is same.
Configuration wise What else I need to configure ?

Unable to login to Azure V12 Database from MVC EF6 app

I have an MVC, EF6 app using SQL Azure. I just upgraded my server on Azure to V12. I'm able to run my app successfully locally using connection strings that point to my SQL Azure database. Howerver, if I attempt to run my app from the Azure web host, I'm not able to. I get an error saying 'Unable to login for user Tour'. The name of my database is Tour, but I don't have a user account named tour. The only user I have is one named WAND.
Again, my apps connects to SQL Azure fine if I run it locally. But not if I access it from my Azure webhost.
I've also executed the following, which I read I had to do with V12: exec sp_set_firewall_rule N'Allow Windows Azure','0.0.0.0','0.0.0.0';
I don't know why it's trying to connect via a user named Tour (the name of my database).
My connection strings look as follows:
<connectionStrings>
<add name="DefaultConnection" connectionString="Data Source=---;Initial Catalog=Tour;User Id=WAND#ServerName;Password=---;" providerName="System.Data.SqlClient"/>
<add name="TourEntities" connectionString="metadata=res://*/Tour.csdl|res://*/Tour.ssdl|res://*/Tour.msl;provider=System.Data.SqlClient;provider connection string="data source=----; initial catalog=Tour; User Id=WAND#ServerName;Password=---;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient"/>
</connectionStrings>
To me this seems as if you have connection string set on Azure itself which modifies your connection string in web.config after deployment.
You didn't state if you are using App Service - Web App or just VM, but I will assume the former.
Go to old portal, select your web app, go to Configure tab and check if you have any entries under "Connection strings" section. I've attached the sample image on how this section looks like if you aren't familiar with it.

Mail Settings for SendGrid using AppHarbor

I'm trying to set up email sending for my ASP.NET MVC4 project using SendGrid and AppHarbor. I know AppHarbor injects the relevant SMTP configuration in my application's configuration, but I want to send email locally for testing. I therefore need to know the correct mailSettings to manually add these settings to my application.
Here is what I have so far:
<network host="smtp.sendgrid.net" port="587" enableSsl="true" defaultCredentials="false" password="XXXX" userName="XXX#apphb.com"></network>
I keep getting the error "Failure Sending Email". I copied the username from my SendGrid account, but I'm not sure what to use for the password.
You can find the password here: https://appharbor.com/applications/name_of_your_app/configurationvariables
Here is where you can find it on the menu: http://www.screencast.com/t/iEaLay3d8

asp.net mvc3 windows authentication only works on local computer

I have a mvc3 applicaiton using windows authentication. it works fine on my local pc.
<authentication mode="Windows" />
after I deploy it to the dev server. every time, i go to the site, a login popup shows up, I need to enter ID and password to access the site. on my local computer, I never see this popup login form. always automatically logged in. What do I need to change on the server side to fix this issue.
in the IIS, I disabled anonymous authentication, only enabled windows authentication. My computer and the serve are on the same domain.
You need to add the server to the local zone in internet explorer. The server needs to be added to the local intranet as it is not being automatically detected. Add the server to this list, restart IE and it will authenticate automatically.

Resources