Sending Email - Default
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-encoding=UTF-8
Default MimeMessage encoding. How can I configure this property?
CAS Property:
|
1 |
spring.mail.default-encoding=UTF-8 |
1
spring:
mail:
default-encoding: "UTF-8"
1
java -Dspring.mail.default-encoding="UTF-8" -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SPRING_MAIL_DEFAULT_ENCODING="UTF-8"
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --spring.mail.default-encoding="UTF-8"
cas.war
with an embedded server container and can be found in the build/libs
directory.
spring.mail.host=
SMTP server host. For instance, 'smtp.example.com'.
How can I configure this property?
CAS Property: spring.mail.host

When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
spring.mail.host=...
1
spring:
mail:
host: "..."
1
java -Dspring.mail.host="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SPRING_MAIL_HOST="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --spring.mail.host="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
spring.mail.jndi-name=
Session JNDI name. When set, takes precedence over other Session settings.
How can I configure this property?
CAS Property: spring.mail.jndi-name

When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
spring.mail.jndi-name=...
1
spring:
mail:
jndi-name: "..."
1
java -Dspring.mail.jndi-name="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SPRING_MAIL_JNDI_NAME="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --spring.mail.jndi-name="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
spring.mail.password=
Login password of the SMTP server.
How can I configure this property?
CAS Property: spring.mail.password

When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
spring.mail.password=...
1
spring:
mail:
password: "..."
1
java -Dspring.mail.password="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SPRING_MAIL_PASSWORD="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --spring.mail.password="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
spring.mail.port=
SMTP server port.
How can I configure this property?
CAS Property: spring.mail.port

When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
spring.mail.port=...
1
spring:
mail:
port: "..."
1
java -Dspring.mail.port="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SPRING_MAIL_PORT="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --spring.mail.port="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.