You can try debugging the Register method in the AccountController. It is sending the emails. We are using the .NET built-in SmtpClient and just passing the credentials and server details - nothing else. This is probably some SMTP server configuration issue which is not related to the email sending code. You can easily try sending an email with the same settings from a command line application to verify it yourself.
The code that sends emails in in AccountController.
Not sure what this means.
If email sending doesn't work in development it is very unlikely to magically start working in production. You need to debug the email sending code preferably in a standalone application.
Your debugger shows it is in Development mode. I am not sure why you may have to check your Azure app settings.
I have the primary problem of email not working at all fixed, thank you for your help.
(It worked when I commented out the check for the environment var.
Then I was having trouble setting the environment var to prod for testing.
I had a web.config file that was overriding the environment var.
I remember when I set up my local machine on IIS that it created a web.config, it didn't make sense at the time, but I kept it anyway. I just got rid of it and everything is working)