Email notifications
Configure email notifications in Administration
Email delivery and template customization are managed from Administration > Platform Settings > Platform configuration > Email Notification.
These settings control the email provider and template. Which events send an email is still controlled by the sendMail flags in the event configuration.

Open Email Notification to enable email sending and configure the SMTP provider, sender and recipient address field. You can customize the email branding and logo, review the preview, send a test email, and save the settings.

Available settings
- SMTP provider: host, port, user, and authentication method. Supported methods are Login, OAuth2 access token, OAuth2 2-legged (service account), and OAuth2 3-legged (user consent). Credentials are masked after saving; advanced settings include the optional TLS cipher list.
- Sender and recipients: sender name, optional sender email (defaults to the authenticated provider user when blank), and the path to the email address in each Witboost user entity. The path can be entered directly or selected from an example user entity.
- Branding: brand name, optional footer, and primary, secondary, body-text, and footer-text colors.
- Logo: upload a PNG or JPG and set its size as a percentage or pixel dimensions. The maximum upload size is controlled by
platform.notifications.emailTemplate.logoMaxSizeMb. - Preview and test: preview the email with sample content, restore the default template styling, or send a test email before saving.
Disabling email sending requires confirmation and deletes the saved provider settings, credentials, and template customizations.
Configure witboost to use Email notifications Deprecated
Starting with Witboost 2.12, ui.appConfig.notifications.emailConfig is no longer considered as the active email configuration. On upgrade, legacy values may be imported into Administration if no saved dynamic configuration exists; verify the settings there after upgrading.
This section describes the legacy configuration through ui.appConfig.notifications.emailConfig. It applies to versions before 2.12; the values shown below are not read as the active configuration in 2.12 and later.
The legacy configuration supports a sender name and, inside the html section, the app name, logo, footer, and email theme.
The email notification feature requires an additional section called emailConfig under notifications, related to the
email configuration.
You can customize the sender name by using the dedicated field. In addition, inside the html section you can customize
the app name, the logo, the footer, and the theme used inside the html email.
The default values used by Witboost are the following, which you can then customize further:
# inside your values.yaml
ui:
appConfig:
# ... other configurations ...
notifications:
# email configuration
emailConfig:
# whether the email sending is enabled or not
enabled: true
# the path where the email address can be found in the user entity. Defaults to 'spec.profile.email'.
userEntityEmailField: 'spec.profile.email'
# name of the email sender that will be shown to the recipients
senderName: Witboost
# (optional) Email address of the sender that will be shown to the recipients and used to send the emails. If not specified, it will default to the email specified in the auth configuration
senderEmail: witboost@your-company.tld
# configuration related to the html email template
html:
# the app name that will be displayed inside the email
appName: Witboost
# path of the logo that will be displayed at the top of the email
# the file must be under the wb-notification-backend plugin folder
# the default witboost logo is available using the path shown below
logoPath: 'src/resources/logo.svg'
# Optional field about the footer information that will be displayed at the bottom of the email, inside the footer
# you can use html tags inside the string, as shown below for the default value
footer: '<strong>witboost</strong> is a product by <strong>Agile Lab s.r.l.</strong> <a href="https://www.agilelab.it" style="color: inherit;">www.agilelab.it</a>'
# theme configuration
color:
# primary color that will be used as background color for the footer
primary: '#00acc1'
# secondary color that will be used for the notification title and for the link
secondary: '#00acc1'
# text color for the body of the notification
text: '#4e6980'
# color for the text inside the footer
footerText: '#ffffff'
Authentication Deprecated
After enabling email notifications for the supported event types by setting the related sendMail flag to true, as explained in this section, the legacy SMTP authentication settings were configured in ui.appConfig.notifications.emailConfig.auth. The examples below apply only to that legacy configuration. The current authentication methods are described above.
- OAuth2 Token
- Basic Auth
Regarding the OAuth2 authentication, you can find further information about the supported parameters in the related section of the documentation of the used email library: Nodemailer documentation - OAuth2. We are supporting both 2LO and 3-legged authentication.
Example of the configuration using the 2LO OAuth2 authentication (service accounts):
# inside your values.yaml
ui:
appConfig:
# ... other configurations ...
notifications:
emailConfig:
# configuration related to email account information and authentication
auth:
# hostname of the smtp server related to the provider used
host: smtp.gmail.com
# port of the smtp server related to the provider used
port: 465
# authentication type: the value can be 'login' or 'oauth2'
type: oauth2
# email account to use
user: witboost@agilelab.it
# Oauth service client
serviceClient: serviceClientValue
# private key used to perform the authentication
privateKey: privateKeyValue
Example of the configuration using the 3-legged OAuth2 authentication:
# inside your values.yaml
ui:
appConfig:
# ... other configurations ...
notifications:
emailConfig:
# configuration related to email account information and authentication
auth:
# hostname of the smtp server related to the provider used
host: smtp.gmail.com
# port of the smtp server related to the provider used
port: 465
# authentication type: the value can be 'login' or 'oauth2'
type: oauth2
# email account to use
user: witboost@agilelab.it
# Oauth client id
clientId: clientIdValue
# Oauth client secret
clientSecret: clientSecretValue
# token used to perform the authentication
accessToken: accessTokenValue
# token used to refresh the access token
refreshToken: refreshTokenValue
In order to use the OAuth2 authentication you will need to register the Witboost application and perform additional operations depending on your provider. The OAuth2 flow has been tested using the 3-legged authentication and Gmail provider. If you are going to configure Oauth2 with Gmail, you can follow the steps explained in this tutorial.
# inside your values.yaml
ui:
appConfig:
# ... other configurations ...
notifications:
emailConfig:
# configuration related to email account information and authentication
auth:
# hostname of the smtp server related to the provider used
host: smtp-mail.provider.com
# port of the smtp server related to the provider used
port: 587
# authentication type: the value can be 'login' or 'oauth2'
type: login
# email account to use
user: witboost@agilelab.it
# password for the specified email account
password: passwordValue