Problem to send mail when click forgot password

Hello, I have configured the portal so that domain users can reset their password by themselves. I noticed that if the user logs in beforehand, the email arrives without problems but if the user has never logged into the portal, the email does not arrive. Do I need to configure any parameters?
Thank you.

Roberto.