Package org.nuxeo.mail
Class SMTPMailSender
java.lang.Object
org.nuxeo.mail.SMTPMailSender
- All Implemented Interfaces:
MailSender
- Direct Known Subclasses:
JndiSMTPMailSender
Default implementation of
MailSender
building MimeMessage
s and sending via SMTP protocol.- Since:
- 2023.4
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
SMTPMailSender
(javax.mail.Session session) SMTPMailSender
(MailSenderDescriptor descriptor) -
Method Summary
Modifier and TypeMethodDescriptionprotected MailMessage
addFroms
(MailMessage message) protected javax.mail.internet.MimeMessage
buildMimeMessage
(MailMessage message) void
sendMail
(MailMessage message)
-
Field Details
-
session
protected final javax.mail.Session session
-
-
Constructor Details
-
SMTPMailSender
-
SMTPMailSender
protected SMTPMailSender(javax.mail.Session session)
-
-
Method Details
-
sendMail
- Specified by:
sendMail
in interfaceMailSender
-
buildMimeMessage
protected javax.mail.internet.MimeMessage buildMimeMessage(MailMessage message) throws javax.mail.MessagingException - Throws:
javax.mail.MessagingException
-
addFroms
-