# Send password reset email

You can use this action to send a user an email with a link that allows him/her to change the reset their password.

***

## <mark style="color:blue;">Inputs and Settings</mark>

<div align="left"><figure><img src="/files/SEZFzvvcKXNyeCUqEv0e" alt=""><figcaption></figcaption></figure></div>

### Email

The email of the user will wish to send the link to reset the password.

### Trigger ID (optional)

This will link the action with a [Action Listener](/firebase-auth-firestore-and-storage-plugin/plugin-elements/firebase-action-listener.md) of the same ID.&#x20;

If left blank, all listener on the page with blank ID's will be triggered at the same time, so we suggest to always define a Trigger ID.

***

## <mark style="color:blue;">Triggered events</mark>

The event below will be triggered by an [Action Listener](/firebase-auth-firestore-and-storage-plugin/plugin-elements/firebase-action-listener.md) with the same ID as the [Trigger ID](#trigger-id-optional) provided on the action.

* Error in Action (if an error occurs)

## <mark style="color:blue;">You must link you Custom Domain to Firebase</mark>

Firebase Authentication provides a way for you to send emails for certain user actions, but for you to use it properly, it's important to note that email might be send to the user's spam folder if you don't have your custom domains linked to Firebase.

To link a Custom Domain to Firebase, you must navigate to you [Firebase Console](https://console.firebase.google.com/), go to Authentication >> Templates (link sample below)

{% embed url="<https://console.firebase.google.com/u/0/project/YOUR_PROJECT_ID/authentication/emails>" %}

There you'll see all the kinds of emails the Firebase Authentication service can send. This Bubble Plugin currently handles the "Email address verification" and "Password reset" tempaltes, only.

<div align="left"><figure><img src="/files/THeXMzFLb2UhTkYIPcYl" alt=""><figcaption></figcaption></figure></div>

On this console you can edit the content of the emails that will be sent to users and also customize the "action URL" you want to use. To customize the link, click on the "pencil" button, to edit the template.

<div align="left"><figure><img src="/files/qtmxTy4svbsB0k9bdcXx" alt=""><figcaption></figcaption></figure></div>

The button "Customize domain" (1) will give you instructions on how to validate your domain on your DNS server provider. This process can take up to 24 hours to complete, but it's important for your email not to go to the spam folder, so be patient.

The button "Customize action URL" (2), you can input the link of the page that will handle the password reset or the email verification. Firebase will send unique parameters to the link on the URL, that you'll be able to use to handle the action.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://estare.gitbook.io/firebase-auth-firestore-and-storage-plugin/plugin-front-end-actions/firebase-auth/send-password-reset-email.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
