By default, email templates and subjects are provided as environment variables, so you can adjust the emails by modifying their content:
# tells that email will be sent as plain text/htmlUI_BAKERY_MAILING_TEMPLATES_MODE=customUI_BAKERY_MAILING_WELCOME_TEMPLATE=HellouserName,<br> WelcometoUIBakeryworkspace.UI_BAKERY_MAILING_WELCOME_SUBJECT=WelcometoUIBakeryworkspace# welcome email sender can be customized, if left empty - default sender is usedUI_BAKERY_MAILING_WELCOME_EMAIL_FROM=UI_BAKERY_MAILING_WELCOME_EMAIL_FROM_NAME=UI_BAKERY_MAILING_RESET_PASSWORD_TEMPLATE=Hello userName,<br> Here's your <a href="resetPasswordUrl">password reset link</a>.
UI_BAKERY_MAILING_RESET_PASSWORD_SUBJECT=ResetpasswordrequestUI_BAKERY_MAILING_CONFIRM_EMAIL_CHANGE_TEMPLATE=Hello userName,<br> Here's a link <a href="changeEmailUrl">to change your email</a>.
UI_BAKERY_MAILING_CONFIRM_EMAIL_CHANGE_SUBJECT=ChangeemailrequestUI_BAKERY_MAILING_REQUEST_TO_JOIN_TEMPLATE=Hello,<br>potentialUserEmailrequestedtojoinyourworkspace.UI_BAKERY_MAILING_REQUEST_TO_JOIN_SUBJECT=UserwouldliketojoinyourorganizationUI_BAKERY_MAILING_SHARE_WITH_USER_TEMPLATE=Hello userName,<br> Here's a <a href="organizationUrl">link to access the organizationName workspace</a>.
UI_BAKERY_MAILING_SHARE_WITH_USER_SUBJECT=YouareinvitedtoUIBakeryworkspaceUI_BAKERY_MAILING_AUTOMATION_ERROR_TEMPLATE=Hello,<br>AutomationworkflowNamefailed,error:<br>errorMessageUI_BAKERY_MAILING_AUTOMATION_ERROR_SUBJECT=UIBakeryautomationworkflowNamefailed
You can use the following built-in email variables to add user values to your emails:
# All emailsuserName,userEmail,subject,userId# Reset password requestresetPasswordUrl# Invitation emailorganizationUrl,organizationName# Request to join emailpotentialUserEmail# Change email requestchangeEmailUrl# Automation errorworkflowName,errorMessage
If you are using SendGrid as an email sender, you can set up email templates using SendGrid dynamic templates and put template IDs instead of plain HTML emails:
# tells that email will be sent using dynamic templatesUI_BAKERY_MAILING_TEMPLATES_MODE=providedUI_BAKERY_MAILING_WELCOME_TEMPLATE=d-c3f84d76543941c084ff2de0exxxxxxxUI_BAKERY_MAILING_RESET_PASSWORD_TEMPLATE=d-c3f84d76543941c084ff2de0exxxxxxxUI_BAKERY_MAILING_CONFIRM_EMAIL_CHANGE_TEMPLATE=d-c3f84d76543941c084ff2de0exxxxxxxUI_BAKERY_MAILING_SHARE_WITH_USER_TEMPLATE=d-c3f84d76543941c084ff2de0exxxxxxxUI_BAKERY_MAILING_REQUEST_TO_JOIN_TEMPLATE=d-c3f84d76543941c084ff2de0exxxxxxxUI_BAKERY_MAILING_AUTOMATION_ERROR_TEMPLATE=d-c3f84d76543941c084ff2de0exxxxxxx
Ensure you provide template IDs for all available emails. Emails without a provided ID will fail to be sent.
Note, that in this case an email subject will be taken from a dynamic template configuration, and variables such as UI_BAKERY_MAILING_WELCOME_SUBJECTare ignored.
This way, you don't need to manage template content inside your environment variables and can build more advanced emails with images and custom styles.