Package org.apache.camel.component.mail
Interface JavaMailSender
-
- All Known Implementing Classes:
DefaultJavaMailSender
public interface JavaMailSenderThe JavaMailSender interface contains all the methods of a JavaMailSender implementation currently used by the mail component.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddAdditionalJavaMailProperty(String key, String value)MailAuthenticatorgetAuthenticator()StringgetHost()PropertiesgetJavaMailProperties()StringgetPassword()intgetPort()StringgetProtocol()javax.mail.SessiongetSession()StringgetUsername()voidsend(javax.mail.internet.MimeMessage mimeMessage)Send the mailvoidsetAuthenticator(MailAuthenticator authenticator)voidsetHost(String host)voidsetJavaMailProperties(Properties javaMailProperties)voidsetPassword(String password)voidsetPort(int port)voidsetProtocol(String protocol)voidsetSession(javax.mail.Session session)voidsetUsername(String username)
-
-
-
Method Detail
-
send
void send(javax.mail.internet.MimeMessage mimeMessage) throws javax.mail.MessagingException
Send the mail- Parameters:
mimeMessage- the message to send- Throws:
javax.mail.MessagingException- is thrown if error sending the mail.
-
getJavaMailProperties
Properties getJavaMailProperties()
-
setJavaMailProperties
void setJavaMailProperties(Properties javaMailProperties)
-
setHost
void setHost(String host)
-
getHost
String getHost()
-
setPort
void setPort(int port)
-
getPort
int getPort()
-
setUsername
void setUsername(String username)
-
getUsername
String getUsername()
-
setPassword
void setPassword(String password)
-
getPassword
String getPassword()
-
setProtocol
void setProtocol(String protocol)
-
getProtocol
String getProtocol()
-
setSession
void setSession(javax.mail.Session session)
-
getSession
javax.mail.Session getSession()
-
setAuthenticator
void setAuthenticator(MailAuthenticator authenticator)
-
getAuthenticator
MailAuthenticator getAuthenticator()
-
-