Class SmtpMailMessage
java.lang.Object
ch.tocco.nice2.messaging.mail.impl.SmtpMailMessage
- All Implemented Interfaces:
MailMessage
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.messaging.mail.spi.processing.MailMessage
MailMessage.HtmlPart
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.mail.internet.InternetAddress[]
getBcc()
jakarta.mail.internet.InternetAddress[]
getCC()
jakarta.mail.internet.InternetAddress[]
getFrom()
jakarta.mail.internet.InternetAddress[]
jakarta.mail.internet.InternetAddress[]
getTo()
void
setBcc
(jakarta.mail.Address[] receiver) void
setCc
(jakarta.mail.Address[] receiver) void
setFrom
(jakarta.mail.Address sender) void
setReplyTo
(jakarta.mail.Address[] sender) void
setSender
(@Nullable jakarta.mail.Address sender) void
setTo
(jakarta.mail.Address[] receiver) boolean
unwrap()
-
Constructor Details
-
SmtpMailMessage
public SmtpMailMessage(jakarta.mail.internet.MimeMessage message)
-
-
Method Details
-
supportsModifyingSender
public boolean supportsModifyingSender()- Specified by:
supportsModifyingSender
in interfaceMailMessage
-
getFrom
public jakarta.mail.internet.InternetAddress[] getFrom() throws jakarta.mail.MessagingException- Specified by:
getFrom
in interfaceMailMessage
- Throws:
jakarta.mail.MessagingException
-
getTo
public jakarta.mail.internet.InternetAddress[] getTo() throws jakarta.mail.MessagingException- Specified by:
getTo
in interfaceMailMessage
- Throws:
jakarta.mail.MessagingException
-
getCC
public jakarta.mail.internet.InternetAddress[] getCC() throws jakarta.mail.MessagingException- Specified by:
getCC
in interfaceMailMessage
- Throws:
jakarta.mail.MessagingException
-
getBcc
public jakarta.mail.internet.InternetAddress[] getBcc() throws jakarta.mail.MessagingException- Specified by:
getBcc
in interfaceMailMessage
- Throws:
jakarta.mail.MessagingException
-
getReplyTo
public jakarta.mail.internet.InternetAddress[] getReplyTo()- Specified by:
getReplyTo
in interfaceMailMessage
-
unwrap
- Specified by:
unwrap
in interfaceMailMessage
-
setSender
public void setSender(@Nullable @Nullable jakarta.mail.Address sender) throws jakarta.mail.MessagingException - Specified by:
setSender
in interfaceMailMessage
- Throws:
jakarta.mail.MessagingException
-
setFrom
public void setFrom(jakarta.mail.Address sender) throws jakarta.mail.MessagingException - Specified by:
setFrom
in interfaceMailMessage
- Throws:
jakarta.mail.MessagingException
-
setReplyTo
public void setReplyTo(jakarta.mail.Address[] sender) throws jakarta.mail.MessagingException - Specified by:
setReplyTo
in interfaceMailMessage
- Throws:
jakarta.mail.MessagingException
-
setTo
public void setTo(jakarta.mail.Address[] receiver) throws jakarta.mail.MessagingException - Specified by:
setTo
in interfaceMailMessage
- Throws:
jakarta.mail.MessagingException
-
setCc
public void setCc(jakarta.mail.Address[] receiver) throws jakarta.mail.MessagingException - Specified by:
setCc
in interfaceMailMessage
- Throws:
jakarta.mail.MessagingException
-
setBcc
public void setBcc(jakarta.mail.Address[] receiver) throws jakarta.mail.MessagingException - Specified by:
setBcc
in interfaceMailMessage
- Throws:
jakarta.mail.MessagingException
-
getHtmlParts
- Specified by:
getHtmlParts
in interfaceMailMessage
- Throws:
IOException
jakarta.mail.MessagingException
-