Package org.apache.camel.component.mail
Interface JavaMailSender
- All Known Implementing Classes:
DefaultJavaMailSender
public interface JavaMailSender
The JavaMailSender interface contains all the methods of a JavaMailSender implementation currently used by the mail
component.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdditionalJavaMailProperty
(String key, String value) getHost()
int
getPort()
jakarta.mail.Session
void
send
(jakarta.mail.internet.MimeMessage mimeMessage) Send the mailvoid
setAuthenticator
(MailAuthenticator authenticator) void
void
setJavaMailProperties
(Properties javaMailProperties) void
setPassword
(String password) void
setPort
(int port) void
setProtocol
(String protocol) void
setSession
(jakarta.mail.Session session) void
setUsername
(String username)
-
Method Details
-
send
void send(jakarta.mail.internet.MimeMessage mimeMessage) throws jakarta.mail.MessagingException Send the mail- Parameters:
mimeMessage
- the message to send- Throws:
jakarta.mail.MessagingException
- is thrown if error sending the mail.
-
getJavaMailProperties
Properties getJavaMailProperties() -
setJavaMailProperties
-
addAdditionalJavaMailProperty
-
setHost
-
getHost
String getHost() -
setPort
void setPort(int port) -
getPort
int getPort() -
setUsername
-
getUsername
String getUsername() -
setPassword
-
getPassword
String getPassword() -
setProtocol
-
getProtocol
String getProtocol() -
setSession
void setSession(jakarta.mail.Session session) -
getSession
jakarta.mail.Session getSession() -
setAuthenticator
-
getAuthenticator
MailAuthenticator getAuthenticator()
-