@Configuration public class MailModule extends Object
MailBuilder| Modifier and Type | Field and Description |
|---|---|
static String |
MAIL_PASSWORD
Set the password for the account at the mail host, if any.
|
static String |
MAIL_USER
Set the username for the account at the mail host, if any.
|
static String |
SMTP_ALLOW_8BIT_MIME
If set to true, and the server supports the 8BITMIME extension, text
parts of this message that use the "quoted-printable" or "base64"
encodings are converted to use "8bit" encoding if they follow the
RFC 2045 rules for 8bit text.
|
static String |
SMTP_AUTH
Use SMTP-AUTH to authenticate to SMTP server.
|
static String |
SMTP_DSN_NOTIFY
Set notification options to be used if the server supports
Delivery Status Notification
(RFC 1891).
|
static String |
SMTP_DSN_RET
Set return option to be used if server supports
Delivery Status Notification
(RFC 1891).
|
static String |
SMTP_ENVELOP_FROM
Set the From address to appear in the SMTP envelope.
|
static String |
SMTP_HOST
Set the mail server host, typically an SMTP host.
|
static String |
SMTP_PORT
Set the mail server port.
|
static String |
SMTP_SENDPARTIAL
If set to true, and this message has some valid and some invalid
addresses, send the message anyway, reporting the partial failure with
a SendFailedException.
|
static String |
SMTP_START_TLS
Use TLS to encrypt communication with SMTP server.
|
| Constructor and Description |
|---|
MailModule() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.mail.javamail.JavaMailSender |
javaMailSender(org.springframework.core.env.Environment environment)
Publish a
JavaMailSender into the application context. |
public static final String SMTP_SENDPARTIAL
mail.smtp.sendpartial property.public static final String SMTP_ENVELOP_FROM
mail.smtp.from property.public static final String SMTP_HOST
public static final String SMTP_PORT
public static final String SMTP_DSN_NOTIFY
NOTIFY_NEVER or some combination of
NOTIFY_SUCCESS, NOTIFY_FAILURE, and
NOTIFY_DELAY.
If set, overrides the mail.smtp.dsn.notify property.public static final String SMTP_DSN_RET
RETURN_FULL or RETURN_HDRS.
If set, overrides the mail.smtp.dsn.ret property.
public static final String SMTP_ALLOW_8BIT_MIME
If true, overrides the mail.smtp.allow8bitmime property.
public static final String MAIL_USER
public static final String MAIL_PASSWORD
public static final String SMTP_AUTH
MAIL_USER is set
this property is to true.public static final String SMTP_START_TLS
@Bean public org.springframework.mail.javamail.JavaMailSender javaMailSender(org.springframework.core.env.Environment environment)
JavaMailSender into the application context.environment - The application environment. Required.JavaMailSender service.Copyright © 2013. All Rights Reserved.