Sending Email - Default
By default, CAS sends email through an SMTP server using the JavaMail API.
The default strategy uses the JavaMail API which provides a platform-independent and
protocol-independent framework to build mail and messaging applications, primarily using SMTP:
The following settings may also need to be defined to describe the mail server settings:
spring.mail.default-encodingDefault MimeMessage encoding.UTF-8Default MimeMessage encoding.
spring.mail.hostSMTP server host.SMTP server host. For instance, 'smtp.example.com'.
spring.mail.jndi-nameSession JNDI name.Session JNDI name. When set, takes precedence over other Session settings.
spring.mail.passwordLogin password of the SMTP server.Login password of the SMTP server.
spring.mail.portSMTP server port.SMTP server port.
spring.mail.propertiesAdditional JavaMail Session properties.Additional JavaMail Session properties.
spring.mail.protocolProtocol used by the SMTP server.smtpProtocol used by the SMTP server.
spring.mail.ssl.bundleSSL bundle name.SSL bundle name. If set, 'mail.(protocol).ssl.socketFactory' property is set to an SSLSocketFactory obtained from the corresponding SSL bundle.
Note that the STARTTLS command can use the corresponding SSLSocketFactory, even if the 'mail.(protocol).ssl.enable' property is not set.
spring.mail.ssl.enabledWhether to enable SSL support.falseWhether to enable SSL support. If enabled, 'mail.(protocol).ssl.enable' property is set to 'true'.
spring.mail.ssl.verify-hostnameWhether to enable hostname verification.trueWhether to enable hostname verification.
spring.mail.test-connectionWhether to test that the mail server is available on startup.falseWhether to test that the mail server is available on startup.
spring.mail.usernameLogin user of the SMTP server.Login user of the SMTP server.