Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-22T06:59:41.940Z
Answers.Text: That is just the form and not the email that is sent out to users
Answers.UserDisplayName: Towny1991
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-22T07:36:47.337Z
Answers.Text: I've updated my answer to add where you set the template.
Answers.UserDisplayName: Jeremy Daalder
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-22T00:44:14.540Z
Answers.LastActivityDate: 2017-05-22T07:36:25.707Z
Answers.LastEditDate: 2017-05-22T07:36:25.707Z
Answers.UserDisplayName: Jeremy Daalder
Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-02-13T16:28:47.267Z
Answers.LastActivityDate: 2024-02-13T16:45:37.290Z
Answers.LastEditDate: 2024-02-13T16:45:37.290Z
Answers.UserDisplayName: Kirk Roberts
Body: <p>Struggling to find any documentation on how to override Craft's HTML for the forgotten password email.</p>
  
Tags: <craft-features>
Title: How to override the Craft forgot password email
ThreadText: # 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:
  
  ```
  <?php
  
  return [
  
  'forgot_password_body' => "Hey {{user.friendlyName|e}},\n\nTo reset your {{systemName}} password, click on this link:\n\n<a style=\"color:#e31837;font-weight:bold;\" href=\"{{link}}\">Set New Password</a>\n\n<strong>If you get an “invalid” error</strong>, 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!
  
  
  ---
  
  