Package com.atlassian.confluence.mail
Class Email
java.lang.Object
com.atlassian.confluence.mail.Email
- All Implemented Interfaces:
com.atlassian.core.task.Task
,Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBodyPart
(MimeBodyPart bodyPart) void
void
execute()
getBody()
void
send
(com.atlassian.mail.server.SMTPMailServer mailServer) void
void
setDataSources
(Collection<DataSource> dataSources) void
void
setFromName
(String fromName) void
setInReplyTo
(String inReplyTo) void
setMessageId
(String messageId) void
setMimeType
(String mimeType) void
setReplyTo
(String replyTo) void
setSubject
(String subject) void
-
Constructor Details
-
Email
-
-
Method Details
-
execute
- Specified by:
execute
in interfacecom.atlassian.core.task.Task
- Throws:
Exception
-
setBody
-
setMimeType
-
setFrom
-
setFromName
-
setTo
-
setSubject
-
addHeader
-
setReplyTo
-
setInReplyTo
-
setMessageId
-
getBody
-
setDataSources
-
send
public void send(com.atlassian.mail.server.SMTPMailServer mailServer) throws com.atlassian.mail.MailException - Throws:
com.atlassian.mail.MailException
-
addBodyPart
- Throws:
MessagingException
-