Umbraco Backoffice - Forgotten password does not work - A from address must be specified.
Hi,
I have recently upgraded my web site from Umbraco 7.4.3 to 7.5.2. I've got "A from address must be specified" when I tried to test the Forgotten password feature in the Umbraco Backoffice login page.
I have already specified the SMTP address and From email address already in Web.config and umbracoSettings.config respectively.
Can anyone please give me some idea how to fix this?
at System.Net.Mail.SmtpClient.SendAsync(MailMessage message, Object userToken)
at System.Net.Mail.SmtpClient.SendMailAsync(MailMessage message)
at Umbraco.Core.Security.EmailService.
Pro tip: one of the Configuration health checks would have told you about this error as well and will allow you to update that configuration right from Umbraco:
Without doing anything with the <smtp> in web.config. So it's not fixing the real problem. Adding the from field manually is the real fix. (Thanks Dennis!)
@Vidar yes, of course we cannot fix your SMTP settings this easily, it requires multiple configuration options. But if you had set up your SMTP settings correctly in web.config it would still send from the wrong email address, that's what this health check is for. I'll see if I can update the text to make this more clear.
<notifications>
<!-- the email that should be used as from mail when umbraco sends a notification -->
<email>[email protected]</email>
</notifications>
If I go to Forgotten Password and Submit....nothing happens.
Sometimes there will be a failure message on the form but I get nothing in the logs.
I'm working locally and connecting to a DB on Azure (* I don't expect that to make any difference *)
Umbraco Backoffice - Forgotten password does not work - A from address must be specified.
Hi,
I have recently upgraded my web site from Umbraco 7.4.3 to 7.5.2. I've got "A from address must be specified" when I tried to test the Forgotten password feature in the Umbraco Backoffice login page.
I have already specified the SMTP address and From email address already in Web.config and umbracoSettings.config respectively.
Can anyone please give me some idea how to fix this?
Web.config under mailSettings
umbracoSettings.config
at System.Net.Mail.SmtpClient.SendAsync(MailMessage message, Object userToken) at System.Net.Mail.SmtpClient.SendMailAsync(MailMessage message) at Umbraco.Core.Security.EmailService.
Hi Dominic.
You are missing the from field for the smtp segment.
Try adding the following:
Thanks Dennis. It works!
Awesome Dominic!
Thanks for confirming that it works!
Have a great day!
Pro tip: one of the Configuration health checks would have told you about this error as well and will allow you to update that configuration right from Umbraco:
This looks like it should be part of a 7.5 Pro Tips blog post ;-)
Thanks for the tip, Sebastian. :-) But it seems like the health check fix only changes the default email address in umbracoSettings.config:
Without doing anything with the
<smtp>
in web.config. So it's not fixing the real problem. Adding the from field manually is the real fix. (Thanks Dennis!)@Vidar yes, of course we cannot fix your SMTP settings this easily, it requires multiple configuration options. But if you had set up your SMTP settings correctly in web.config it would still send from the wrong email address, that's what this health check is for. I'll see if I can update the text to make this more clear.
Ah.. and with that said.. I see my earlier reply was a bit too optimistic, it doesn't fix the problem I thought it fixed, well spotted!
Thanks for the tip.
I can't seem to get the 'Forgotten password' feature to work.
My Web.config looks like this:
My umbracoSettings.confiog looks like this:
If I go to Forgotten Password and Submit....nothing happens. Sometimes there will be a failure message on the form but I get nothing in the logs.
I'm working locally and connecting to a DB on Azure (* I don't expect that to make any difference *)
Do I need to do anything else here?
Thanks
Chris
is working on a reply...