Skip to content

Mail

This authorization server can email a user through the use of Micronaut Email.

The SMTP client implementation was chosen because it can be easily integrated with the most commonly used mailing solutions on the market:

javamail

KeyTypeDescriptionRequired
Default
enabledbooleanSet to true to enable sending emails. If mails are enable but the configuration is missing, it will fail to start with the following message: JavaMail configuration does not contain any properties.NO
authenticationobjectContains the username and the password to authenticate to the SMTP server.NO
propertiesobjectConfiguration of the SMTP library using its properties.YES

Example:

yaml
javamail:
  enabled: true
  authentication:
    username: username
    password: password
  properties:
    mail:
      from: noreply@example.com
      smtp:
        host: ssl.smtp.example.com
        port: 465
        ssl:
          enable: true

javamail.authentication

KeyTypeDescriptionRequired
Default
usernamestringUsername to authenticate to the SMTP server.YES
passwordstringPassword to authenticate to the SMTP server.YES