Example usage for Java org.springframework.mail.javamail JavaMailSenderImpl fields, constructors, methods, implement or subclass
The text is from its open source code.
String | DEFAULT_PROTOCOL The default protocol: 'smtp'. |
int | DEFAULT_PORT The default port: -1. |
JavaMailSenderImpl() Create a new instance of the JavaMailSenderImpl class. |
MimeMessage | createMimeMessage() This implementation creates a SmartMimeMessage, holding the specified default encoding and default FileTypeMap. |
String | getDefaultEncoding() Return the default encoding for MimeMessage MimeMessages , or null if none. |
String | getHost() Return the mail server host. |
Properties | getJavaMailProperties() Allow Map access to the JavaMail properties of this sender, with the option to add or override specific entries. |
int | getPort() Return the mail server port. |
String | getProtocol() Return the mail protocol. |
Session | getSession() Return the JavaMail Session , lazily initializing it if hasn't been specified explicitly. |
String | getUsername() Return the username for the account at the mail host. |
void | send(SimpleMailMessage simpleMessage) |
void | send(SimpleMailMessage... simpleMessages) |
void | send(MimeMessage mimeMessage) |
void | send(MimeMessage... mimeMessages) |
void | send(MimeMessagePreparator mimeMessagePreparator) |
void | send(MimeMessagePreparator... mimeMessagePreparators) |
void | setDefaultEncoding(@Nullable String defaultEncoding) Set the default encoding to use for MimeMessage MimeMessages created by this instance. |
void | setHost(@Nullable String host) Set the mail server host, typically an SMTP host. |
void | setJavaMailProperties(Properties javaMailProperties) Set JavaMail properties for the Session . |
void | setPassword(@Nullable String password) Set the password for the account at the mail host, if any. |
void | setPort(int port) Set the mail server port. |
void | setProtocol(@Nullable String protocol) Set the mail protocol. |
void | setSession(Session session) Set the JavaMail Session , possibly pulled from JNDI. |
void | setUsername(@Nullable String username) Set the username for the account at the mail host, if any. |