[[appendix.application-properties.mail]]
== Mail Properties
[cols="4,3,3", options="header"]
|===
|Name|Description|Default Value

|[[application-properties.mail.spring.mail.default-encoding]]xref:#application-properties.mail.spring.mail.default-encoding[`+spring.mail.default-encoding+`]
|+++Default MimeMessage encoding.+++
|`+UTF-8+`

|[[application-properties.mail.spring.mail.host]]xref:#application-properties.mail.spring.mail.host[`+spring.mail.host+`]
|+++SMTP server host. For instance, 'smtp.example.com'.+++
|

|[[application-properties.mail.spring.mail.jndi-name]]xref:#application-properties.mail.spring.mail.jndi-name[`+spring.mail.jndi-name+`]
|+++Session JNDI name. When set, takes precedence over other Session settings.+++
|

|[[application-properties.mail.spring.mail.password]]xref:#application-properties.mail.spring.mail.password[`+spring.mail.password+`]
|+++Login password of the SMTP server.+++
|

|[[application-properties.mail.spring.mail.port]]xref:#application-properties.mail.spring.mail.port[`+spring.mail.port+`]
|+++SMTP server port.+++
|

|[[application-properties.mail.spring.mail.properties]]xref:#application-properties.mail.spring.mail.properties[`+spring.mail.properties.*+`]
|+++Additional JavaMail Session properties.+++
|

|[[application-properties.mail.spring.mail.protocol]]xref:#application-properties.mail.spring.mail.protocol[`+spring.mail.protocol+`]
|+++Protocol used by the SMTP server.+++
|`+smtp+`

|[[application-properties.mail.spring.mail.test-connection]]xref:#application-properties.mail.spring.mail.test-connection[`+spring.mail.test-connection+`]
|+++Whether to test that the mail server is available on startup.+++
|`+false+`

|[[application-properties.mail.spring.mail.username]]xref:#application-properties.mail.spring.mail.username[`+spring.mail.username+`]
|+++Login user of the SMTP server.+++
|

|[[application-properties.mail.spring.sendgrid.api-key]]xref:#application-properties.mail.spring.sendgrid.api-key[`+spring.sendgrid.api-key+`]
|+++SendGrid API key.+++
|

|[[application-properties.mail.spring.sendgrid.proxy.host]]xref:#application-properties.mail.spring.sendgrid.proxy.host[`+spring.sendgrid.proxy.host+`]
|+++SendGrid proxy host.+++
|

|[[application-properties.mail.spring.sendgrid.proxy.port]]xref:#application-properties.mail.spring.sendgrid.proxy.port[`+spring.sendgrid.proxy.port+`]
|+++SendGrid proxy port.+++
|

|===
