<p>The documentation can be found here:
<a href="https://craftcms.com/docs/templating/forgot-password-form" rel="nofollow noreferrer">https://craftcms.com/docs/templating/forgot-password-form</a></p>

<p>Part of the full templating documentation that starts here:
<a href="https://craftcms.com/docs/templating/global-variables" rel="nofollow noreferrer">https://craftcms.com/docs/templating/global-variables</a></p>

<p>The actual HTML side of things is determined by the template you're using, which you can specify in the control panel -> settings -> emails.  I believe these settings are considered 'self documenting' in that there are explanations on that page as to what they do.</p>

<p>One thing worth noting is that IIRC you can't extend a layout template with that template, which is a little unfortunate.  So I have one general layout for all my general emails and duplicate that fully into the system email template.</p>

CC BY-SA 3.0
2017-05-22T06:59:41.940Z
That is just the form and not the email that is sent out to users
Towny1991
CC BY-SA 3.0
2017-05-22T07:36:47.337Z
I've updated my answer to add where you set the template.
Jeremy Daalder
CC BY-SA 3.0
2017-05-22T00:44:14.540Z
2017-05-22T07:36:25.707Z
2017-05-22T07:36:25.707Z
Jeremy Daalder
<p>I know this question is old but it was what came up for me in a web search so I wanted to add detail for anyone else who gets here.</p>
<p>In a Craft 3 site I wanted to change the text of the &quot;forgot password&quot; email. Not the HTML, just the text. Some people were getting errors about their links not being valid, so I wanted to add some clarifying text.</p>
<p>What worked for me was creating a translations file at <code>/translations/en/app.php</code> — /translations may need to be created, and it should be beside the /config and /vendor folders — of course, if /en is not your language, you'll need to change that.</p>
<p>In app.php I used this text:</p>
<pre><code>&lt;?php

return [

'forgot_password_body' =&gt; &quot;Hey {{user.friendlyName|e}},\n\nTo reset your {{systemName}} password, click on this link:\n\n&lt;a style=\&quot;color:#e31837;font-weight:bold;\&quot; href=\&quot;{{link}}\&quot;&gt;Set New Password&lt;/a&gt;\n\n&lt;strong&gt;If you get an “invalid” error&lt;/strong&gt;, please try copying and pasting the full link below into a web browser rather than clicking on it. It may be multiple lines!\n\n{{link}}\n\nIf you were not expecting this email, just ignore it.&quot;,

];
</code></pre>
<p>Look to <code>/vendor/craftcms/cms/src/translations/en/app.php</code> to see other static translations that can be overridden (substituting &quot;en&quot; with your language, if needed).</p>
<p>Hope that helps someone!</p>

CC BY-SA 4.0
2024-02-13T16:28:47.267Z
2024-02-13T16:45:37.290Z
2024-02-13T16:45:37.290Z
Kirk Roberts
<p>Struggling to find any documentation on how to override Craft's HTML for the forgotten password email.</p>

<craft-features>
How to override the Craft forgot password email
# How to override the Craft forgot password email

(Asked by: username_0 on 2017-05-21)

Struggling to find any documentation on how to override Craft's HTML for the forgotten password email.

**Tags:** craft-features

---

## 2 answers

### Answer by username_1 on 2017-05-22. Score: 2 | Accepted answer

The documentation can be found here:
<https://craftcms.com/docs/templating/forgot-password-form>

Part of the full templating documentation that starts here:
<https://craftcms.com/docs/templating/global-variables>

The actual HTML side of things is determined by the template you're using, which you can specify in the control panel -> settings -> emails. I believe these settings are considered 'self documenting' in that there are explanations on that page as to what they do.

One thing worth noting is that IIRC you can't extend a layout template with that template, which is a little unfortunate. So I have one general layout for all my general emails and duplicate that fully into the system email template.

> **Comments:**
> **username_0**: That is just the form and not the email that is sent out to users  
> **username_1**: I've updated my answer to add where you set the template.  

---

### Answer by username_2 on 2024-02-13. Score: 1

I know this question is old but it was what came up for me in a web search so I wanted to add detail for anyone else who gets here.
In a Craft 3 site I wanted to change the text of the "forgot password" email. Not the HTML, just the text. Some people were getting errors about their links not being valid, so I wanted to add some clarifying text.
What worked for me was creating a translations file at /translations/en/app.php — /translations may need to be created, and it should be beside the /config and /vendor folders — of course, if /en is not your language, you'll need to change that.
In app.php I used this text:
 "Hey {{user.friendlyName|e}},\n\nTo reset your {{systemName}} password, click on this link:\n\nSet New Password\n\nIf you get an “invalid” error, please try copying and pasting the full link below into a web browser rather than clicking on it. It may be multiple lines!\n\n{{link}}\n\nIf you were not expecting this email, just ignore it.",

];

Look to /vendor/craftcms/cms/src/translations/en/app.php to see other static translations that can be overridden (substituting "en" with your language, if needed).
Hope that helps someone!


---

