|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.github.jknack.mwa.mail.MailModule
@Configuration public class MailModule
Provide common mail features.
MailBuilder| Field Summary | |
|---|---|
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 Summary | |
|---|---|
MailModule()
|
|
| Method Summary | |
|---|---|
org.springframework.mail.javamail.JavaMailSender |
javaMailSender(org.springframework.core.env.Environment environment)
Publish a JavaMailSender into the application context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public MailModule()
| Method Detail |
|---|
@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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||