What is the use of 'Forgot your password' in the Grafana login screen?

I like to ask “What is the use of ‘Forgot your password’ in the Grafana login screen?

Meaning when i click on ‘Forget your password’ and provide the username, then a notification pops us. It says “failed to sent email”.

I mean how did this feature work on “Grafana running on localhost system”? Can anyone point to me “blog” or “video tutorial” explaining how this feature work?

on a localhost system, you can edit your grafana.ini and complete the smtp stanza, then grafana will be able to send mails