Skip to main content

Email templates

Mattermost has a few email templates that are sent out when a specific event occurs. Most of the time these templates do not need to be modified. In case additional modifications are necessary, all available props in each email are listed below. The 'Content'-Field is just to give a quick description of the prop. Please check the i18n strings for the exact wording.

The email templates are located in the Mattermost server directory in the templates folder. The corresponding strings for each prop can be found in the i18n folder.

Available templates

Purpose: This is appended to all outgoing emails sent by Mattermost.

Props:

PropContenti18n String
FooterMessage introapi.templates.email_footer
OrganizationName of Organizationapi.templates.email_organization
EmailInfo1First line of footerapi.templates.email_info1
EmailInfo2Second line of footerapi.templates.email_info2
EmailInfo3Third line of footerapi.templates.email_info3
SupportEmailEmail for Mattermost support--

SendChangeUsernameEmail

Purpose: Sent to the user when username has been changed.

Body Props:

PropContenti18n String
SiteURLURL of the Mattermost server--
TitleMessage headingapi.templates.username_change_body.title
InfoMessage bodyapi.templates.username_change_body.info
WarningWarning textapi.templates.email_warning

SendEmailChangeVerifyEmail

Purpose: Sent to the user when an email change has been requested. Contains verification link and button.

Body Props:

PropContenti18n String
SiteURLURL of the Mattermost server--
TitleMessage headingapi.templates.email_change_verify_body.title
InfoMessage bodyapi.templates.email_change_verify_body.info
VerifyUrlURL for email verification--
VerifyButtonButton for email verificationapi.templates.email_change_verify_body.button

SendEmailChangeEmail

Purpose: Sent to the user when the email has been changed successfully.

Body Props:

PropContenti18n String
SiteURLURL of the Mattermost server--
TitleMessage headingapi.templates.email_change_body.title
InfoMessage bodyapi.templates.email_change_body.info
WarningWarning textapi.templates.email_warning

SendVerifyEmail

Purpose: Sent to the user upon account creation to verify email address.

Body Props:

PropContenti18n String
SiteURLURL of the Mattermost server--
TitleMessage headingapi.templates.verify_body.title
InfoMessage bodyapi.templates.verify_body.info
VerifyUrlURL for email verification--
ButtonButton for email verificationapi.templates.verify_body.button

SendSignInChangeEmail

Purpose: Sent to the user when the login method has been changed (i.e. from email to LDAP, etc.)

Body Props:

PropContenti18n String
SiteURLURL of the Mattermost server--
TitleMessage headingapi.templates.signin_change_email.body.title
InfoMessage bodyapi.templates.signin_change_email.body.info
WarningWarning textapi.templates.email_warning

SendWelcomeEmail

Purpose: Sent to the user when the account has been created. May also contain download links to Apps as well as email verification links.

Body Props:

PropContenti18n String
SiteURLURL of the Mattermost server--
TitleMessage headingapi.templates.welcome_body.title
InfoMessage bodyapi.templates.welcome_body.info
ButtonButton for confirmationapi.templates.welcome_body.button
Info2Continuation of message bodyapi.templates.welcome_body.info2
Info3Continuation of message bodyapi.templates.welcome_body.info3

Optional Props:

PropContenti18n String
AppDownloadInfoInfo for App Downloadsapi.templates.welcome_body.app_download_info
AppDownloadLinkDownload link for Apps--
VerifyUrlLink for verification--

SendPasswordChangeEmail

Purpose: Sent to the user when password has been changed.

Body Props:

PropContenti18n String
SiteURLURL of the Mattermost server--
TitleMessage headingapi.templates.password_change_body.title
InfoMessage bodyapi.templates.password_change_body.info
WarningWarning textapi.templates.email_warning

SendAccessTokenEmail

Purpose: Sent to the user when an access token has been added to the account.

Body Props:

PropContenti18n String
SiteURLURL of the Mattermost server--
TitleMessage headingapi.templates.user_access_token_body.title
InfoMessage bodyapi.templates.user_access_token_body.info
WarningWarning textapi.templates.email_warning

SendPasswordResetEmail

Purpose: Sent to the user when password request has been initiated.

Body Props:

PropContenti18n String
SiteURLURL of the Mattermost server--
TitleMessage headingapi.templates.reset_body.title
Info1Message bodyapi.templates.reset_body.info1
Info2Continuation of message bodyapi.templates.reset_body.info2
ResetUrlURL to reset password--
ButtonButton for confirmationapi.templates.reset_body.button

SendMfaChangeEmail

Purpose: Sent to the user when multi-factor authentication method has been changed.

Body Props when MFA is activated:

PropContenti18n String
SiteURLURL of the Mattermost server--
TitleMessage headingapi.templates.mfa_activated_body.title
InfoMessage bodyapi.templates.mfa_activated_body.info
WarningWarning textapi.templates.email_warning

Body Props when MFA is deactivated:

PropContenti18n String
SiteURLURL of the Mattermost server--
TitleMessage headingapi.templates.mfa_deactivated_body.title
InfoMessage bodyapi.templates.mfa_deactivated_body.info
WarningWarning textapi.templates.email_warning

SendDeactivateAccountEmail

Purpose: Sent to the user when account has been deactivated.

Body Props:

PropContenti18n String
SiteURLURL of the Mattermost server--
TitleMessage headingapi.templates.deactivate_body.title
InfoMessage bodyapi.templates.deactivate_body.info
WarningWarning textapi.templates.deactivate_body.warning

SendInviteEmails

Purpose: Sent to the user when team invite via email has been used.

Body Props:

PropContenti18n String
SiteURLURL of the Mattermost server--
TitleMessage headingapi.templates.invite_body.title
Info1Message bodyapi.templates.invite_body.info
ButtonButton for confirmationapi.templates.invite_body.button
ExtraInfoAdditional info about Mattermostapi.templates.invite_body.extra_info
TeamURLURL to the team the user has been invited to--
LinkURL for team invite confirmation (not to be confused with TeamURL)--

NotificationEmailBody

Purpose: Sent to the user as a notification for new messages or mentions.

Body Props:

PropContenti18n String
SiteURLURL of the Mattermost server--
ButtonButton to postapi.templates.post_body.button
TeamLinkURL to Team--

This email can change depending on the settings and type of channel the notification is sent for.

For group channels:

With full notification contents enabled:

PropContenti18n String
BodyTextMessage introapp.notification.body.intro.group_message.full
Info1Channel nameapp.notification.body.text.group_message.full
Info2Message contentsapp.notification.body.text.group_message.full2
SenderNameName of sender--

Without:

PropContenti18n String
BodyTextMessage introapp.notification.body.intro.group_message.generic
InfoTimestampapp.notification.body.text.group_message.generic

For direct messages:

With full notification contents enabled:

PropContenti18n String
BodyTextMessage introapp.notification.body.intro.direct.full
Info1Empty for direct messages--
Info2Message contentsapp.notification.body.text.direct.full
SenderNameName of sender--

Without:

PropContenti18n String
BodyTextMessage introapp.notification.body.intro.direct.generic
InfoTimestampapp.notification.body.text.direct.generic

Notifications:

With full notification contents enabled:

PropContenti18n String
BodyTextMessage introapp.notification.body.intro.notification.full
Info1Channel nameapp.notification.body.text.notification.full
Info2Message contentsapp.notification.body.text.notification.full2
SenderNameName of sender--

Without:

PropContenti18n String
BodyTextURL of the Mattermost serverapp.notification.body.intro.notification.generic
InfoMessage headingapp.notification.body.text.notification.generic