UserManager SendEmailAsync No Email Sent

前端 未结 4 700
旧巷少年郎
旧巷少年郎 2020-12-01 09:41

I am using the following code to try to send an email asynchronously, but no email is sent and I am not sure what is being done incorrectly. I have also added the 2nd segme

4条回答
  •  被撕碎了的回忆
    2020-12-01 09:52

    Great. Thank you. I have error because ConfigurationManager.AppSettings["SupportEmailAddr"] was null. You have to set it in your web.config file. You have a section called: . That is what ConfigurationManager.AppSettings is referring too. ["SupportEmailAddr"] is looking at a specific setting called SupportEmailAddr. In your web.config it would look something like this:

    
        
    
    

提交回复
热议问题