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
| Key | Type | Description | Required Default |
|---|---|---|---|
enabled | boolean | Set 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 |
authentication | object | Contains the username and the password to authenticate to the SMTP server. | NO |
properties | object | Configuration 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: truejavamail.authentication
| Key | Type | Description | Required Default |
|---|---|---|---|
username | string | Username to authenticate to the SMTP server. | YES |
password | string | Password to authenticate to the SMTP server. | YES |