Document overriding mailer templates (#10574)

* Document overriding mailer templates

* List emails in backend guide index
Issue #9849
This commit is contained in:
Simon Fish 2020-10-20 08:56:09 +01:00 committed by GitHub
parent 849002c988
commit 1c6f82bd13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 10 deletions

13
docs/backend/emails.md Normal file
View file

@ -0,0 +1,13 @@
---
title: Emails
---
# Previewing emails in development
You can view email previews at <http://localhost:3000/rails/mailers>.
Previews are setup in the directory `spec/mailers/previews`.
# Overriding mailer templates
To update the contents of emails that the app sends, edit the views under `app/views/mailers`. Note that this app uses the [`devise_invitable` gem](https://github.com/scambra/devise_invitable) for invitations. The views for this gem are stored under `app/views/devise/mailer`.

View file

@ -1,9 +0,0 @@
---
title: Previewing Emails
---
# Previewing emails in development
You can view email previews at <http://localhost:3000/rails/mailers>.
Previews are setup in the directory `spec/mailers/previews`.

View file

@ -10,12 +10,12 @@ items:
- configuration.md
- data-update-scripts.md
- elasticsearch.md
- emails.md
- fastly.md
- internationalization.md
- roles.md
- pusher.md
- resource-admin.md
- previewing-emails.md
- notification.md
- scheduled-jobs.md
- metrics.md