diff --git a/master/documentation/usage/mail-templates/index.html b/master/documentation/usage/mail-templates/index.html index b80287cf..5873d6b1 100644 --- a/master/documentation/usage/mail-templates/index.html +++ b/master/documentation/usage/mail-templates/index.html @@ -5,4 +5,4 @@ # will be written there so you can modify them. # Leave empty to use embedded templates only. templates_path: "/opt/wg-portal/mail-templates" -
The system expects the following template names. Place files with these names in your templates_path to override the defaults. You do not need to override all templates, only the ones you want to customize should be present.
.gotpl):mail_with_link.gotplmail_with_attachment.gotpl.gohtml):mail_with_link.gohtmlmail_with_attachment.gohtmlBoth text and HTML templates are standard Go templates and receive the following data fields, depending on the email type:
PortalUrl (string) - external URL of the PortalPortalName (string) - site title/company nameUser (*domain.User) - the recipient user (may be partially populated when sending to a peer email)mail_with_link.*):Link (string) - the download linkmail_with_attachment.*):ConfigFileName (string) - filename of the attached WireGuard configQrcodePngName (string) - CID content-id of the embedded QR code imageTip: You can inspect the embedded templates in the repository under internal/app/mail/tpl_files/ for reference. When the directory at templates_path is empty, these files are copied to your folder so you can edit them in place.