Skip to main content

Configuration

note

This guide assumes familiarity with the Spring Framework.
If you are new to Spring, we recommend starting with their official guides to get up to speed.

Singularity includes an easy-to-use email templating engine. Some automated emails come out-of-the-box, such as an email verification email and a password reset email.

info

By default, this feature is disabled. Setting up or configuring an email server can be tricky. Therefore, we decided to disable it by default to allow fast onboarding without much hustle.

You can choose to enable it any time. But make sure to configure it correctly.

warning

If email is disabled, some features such as password reset or email verification will not work at all.

Properties

PropertyTypeDescriptionDefault Value
singularity.email.enableBooleanEnable email functionality.false
singularity.email.hostStringThe hostname of the email server.host.com
singularity.email.portIntThe port for the email server.0
singularity.email.emailStringThe sender's email address.[email protected]
singularity.email.usernameStringThe username for authentication.[email protected]
singularity.email.passwordStringThe password for authentication.password
singularity.email.transportProtocolStringThe transport protocol, e.g., smtp.smtp
singularity.email.smtpAuthBooleanWhether SMTP authentication is enabled.true
singularity.email.smtpStarttlsBooleanWhether to use STARTTLS for a secure connection.true
singularity.email.debugBooleanWhether to enable debug output for the mail client.false
singularity.email.sendCooldownLongThe cooldown period in seconds between sending emails.60

Example application.yaml

singularity:
email:
enable: true
host: smtp.your-provider.com
port: 587
email: your-email@your-domain.com
username: your-email@your-domain.com
password: your-password
transportProtocol: smtp
smtpAuth: true
smtpStarttls: true
debug: false
sendCooldown: 60