Email

Tier: Free, Premium, Ultimate Offering: Self-managed

You can customize some of the content in emails sent from your GitLab instance.

The logo in the header of some emails can be customized, see the logo customization section.

Include author name in email notification email body

Tier: Premium, Ultimate Offering: Self-managed

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:

  1. On the left sidebar, at the bottom, select Admin.
  2. Select Settings > Preferences.
  3. Expand Email.
  4. Select the Include author name in email notification email body checkbox.
  5. Select Save changes.

Enable multipart email

Tier: Premium, Ultimate Offering: Self-managed

GitLab can send email in multipart format (HTML and plain text) or plain text only.

To enable multipart email:

  1. On the left sidebar, at the bottom, select Admin.
  2. Select Settings > Preferences.
  3. Expand Email.
  4. Select Enable multipart email.
  5. Select Save changes.

Custom hostname for private commit emails

Tier: Premium, Ultimate Offering: Self-managed

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:

  1. On the left sidebar, at the bottom, select Admin.
  2. Select Settings > Preferences.
  3. Expand Email.
  4. Enter the desired hostname in the Custom hostname (for private commit emails) field.
  5. 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

Tier: Premium, Ultimate Offering: Self-managed

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:

  1. On the left sidebar, at the bottom, select Admin.
  2. Select Settings > Preferences.
  3. Expand Email.
  4. Enter your text in the Additional text field.
  5. Select Save changes.

User deactivation emails

GitLab sends email notifications to users when their account has been deactivated.

To disable these notifications:

  1. On the left sidebar, at the bottom, select Admin.
  2. Select Settings > Preferences.
  3. Expand Email.
  4. Clear the Enable user deactivation emails checkbox.
  5. Select Save changes.

Custom additional text in deactivation emails

Tier: Free, Premium, Ultimate Offering: Self-managed
History

You can add additional text at the bottom of the email that GitLab sends to users when their account is deactivated. This email text is separate from the custom additional text setting.

To add additional text to deactivation emails:

  1. On the left sidebar, at the bottom, select Admin.
  2. Select Settings > Preferences.
  3. Expand Email.
  4. Enter your text in the Additional text for deactivation email field.
  5. Select Save changes.

Group and project access token expiry emails to inherited members

Tier: Free, Premium, Ultimate Offering: Self-managed
History
  • Notifications to inherited group members introduced in GitLab 17.7 with a flag named pat_expiry_inherited_members_notification. Disabled by default.
The availability of emails to inherited project and group members is controlled by a feature flag. For more information, see the history.

In GitLab 17.7 and later, the following inherited group and project members can receive emails about group and project access tokens that are expiring soon, in addition to direct group and project members:

  • For groups, members who inherit the Owner role for those groups.
  • For projects, project members who inherit the Owner or Maintainer role for projects that belong to those groups.

To enable token expiration emails to inherited group and project members:

  1. On the left sidebar, at the bottom, select Admin.
  2. Select Settings > Preferences.
  3. Expand Email.
  4. Under Expiry notification emails about group and project access tokens should be sent to:, select All direct and inherited members of the group or project.
  5. Select the Enforce this setting for all groups on this instance checkbox.
  6. Select Save changes.

For more information on token expiration emails, see: