Closed tigreye007 closed 2 years ago
Workaround: set the from address explicitly from the web.config on controller initialize:
protected override void Initialize(System.Web.Routing.RequestContext requestContext) { base.Initialize(requestContext); var section = ConfigurationManager.GetSection("system.net/mailSettings/smtp") as SmtpSection; MailAttributes.From = new System.Net.Mail.MailAddress(section.From); }
this has been fixed in PR #23
Workaround: set the from address explicitly from the web.config on controller initialize: