public interface JavaMailSender
Modifier and Type | Method and Description |
---|---|
void |
addAdditionalJavaMailProperty(String key,
String value) |
MailAuthenticator |
getAuthenticator() |
String |
getHost() |
Properties |
getJavaMailProperties() |
String |
getPassword() |
int |
getPort() |
String |
getProtocol() |
javax.mail.Session |
getSession() |
String |
getUsername() |
void |
send(javax.mail.internet.MimeMessage mimeMessage)
Send the mail
|
void |
setAuthenticator(MailAuthenticator authenticator) |
void |
setHost(String host) |
void |
setJavaMailProperties(Properties javaMailProperties) |
void |
setPassword(String password) |
void |
setPort(int port) |
void |
setProtocol(String protocol) |
void |
setSession(javax.mail.Session session) |
void |
setUsername(String username) |
void send(javax.mail.internet.MimeMessage mimeMessage) throws javax.mail.MessagingException
mimeMessage
- the message to sendjavax.mail.MessagingException
- is thrown if error sending the mail.Properties getJavaMailProperties()
void setJavaMailProperties(Properties javaMailProperties)
void setHost(String host)
String getHost()
void setPort(int port)
int getPort()
void setUsername(String username)
String getUsername()
void setPassword(String password)
String getPassword()
void setProtocol(String protocol)
String getProtocol()
void setSession(javax.mail.Session session)
javax.mail.Session getSession()
void setAuthenticator(MailAuthenticator authenticator)
MailAuthenticator getAuthenticator()
Apache Camel