Email (FREE SELF)
You can customize some of the content in emails sent from your GitLab instance.
Custom logo
The logo in the header of some emails can be customized, see the logo customization section.
Include author name in email notification email body (PREMIUM SELF)
By default, GitLab overrides the email address in notification emails with the email address of the issue, merge request, or comment author. Enable this setting to include the author's email address in the body of the email instead.
To include the author's email address in the email body:
- On the top bar, select Menu > Admin.
- On the left sidebar, select Settings > Preferences (
/admin/application_settings/preferences
). - Expand Email.
- Select the Include author name in email notification email body checkbox.
- Select Save changes.
Enable multipart email (PREMIUM SELF)
GitLab can send email in multipart format (HTML and plain text) or plain text only.
To enable multipart email:
- On the top bar, select Menu > Admin.
- On the left sidebar, select Settings > Preferences (
/admin/application_settings/preferences
). - Expand Email.
- Select Enable multipart email.
- Select Save changes.
Custom hostname for private commit emails (PREMIUM SELF)
Introduced in GitLab 11.5.
This configuration option sets the email hostname for private commit emails.
By default it is set to users.noreply.YOUR_CONFIGURED_HOSTNAME
.
To change the hostname used in private commit emails:
- On the top bar, select Menu > Admin.
- On the left sidebar, select Settings > Preferences (
/admin/application_settings/preferences
). - Expand Email.
- Enter the desired hostname in the Custom hostname (for private commit emails) field.
- Select Save changes.
NOTE:
After the hostname is configured, every private commit email using the previous hostname is not
recognized by GitLab. This can directly conflict with certain Push rules such as
Check whether author is a GitLab user
and Check whether committer is the current authenticated user
.
Custom additional text (PREMIUM SELF)
You can add additional text at the bottom of any email that GitLab sends. This additional text can be used for legal, auditing, or compliance reasons, for example.
To add additional text to emails:
- On the top bar, select Menu > Admin.
- On the left sidebar, select Settings > Preferences (
/admin/application_settings/preferences
). - Expand Email.
- Enter your text in the Additional text field.
- Select Save changes.
User deactivation emails (FREE SELF)
GitLab sends email notifications to users when their account has been deactivated.
To disable these notifications:
- On the top bar, select Menu > Admin.
- On the left sidebar, select Settings > Preferences (
/admin/application_settings/preferences
). - Expand Email.
- Clear the Enable user deactivation emails checkbox.
- Select Save changes.