public class ConfluenceMailQueueItem extends Object implements com.atlassian.mail.queue.MailQueueItem
Modifier and Type | Field and Description |
---|---|
static String |
MIME_TYPE_HTML |
static String |
MIME_TYPE_TEXT |
Constructor and Description |
---|
ConfluenceMailQueueItem(String toAddress,
String subject,
String body,
String mimeType) |
ConfluenceMailQueueItem(String toAddress,
String ccAddress,
String subject,
String body,
String mimeType) |
ConfluenceMailQueueItem(String toAddress,
String ccAddress,
String subject,
String body,
String mimeType,
Collection<DataSource> attachedImages) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(com.atlassian.mail.queue.MailQueueItem o) |
void |
execute() |
String |
getBody() |
Date |
getDateQueued() |
String |
getFromAddress() |
String |
getFromName() |
String |
getLastError() |
int |
getSendCount() |
String |
getSubject() |
boolean |
hasError() |
void |
send()
Deprecated.
|
void |
setFromAddress(String fromAddress) |
void |
setFromName(String fromName) |
void |
setLogsLocation(String logsLocation) |
void |
setSendLogs(boolean sendLogs) |
public static final String MIME_TYPE_HTML
public static final String MIME_TYPE_TEXT
public ConfluenceMailQueueItem(String toAddress, String subject, String body, String mimeType)
public ConfluenceMailQueueItem(String toAddress, String ccAddress, String subject, String body, String mimeType)
public ConfluenceMailQueueItem(String toAddress, String ccAddress, String subject, String body, String mimeType, Collection<DataSource> attachedImages)
public void setSendLogs(boolean sendLogs)
public void setLogsLocation(String logsLocation)
public int compareTo(com.atlassian.mail.queue.MailQueueItem o)
compareTo
in interface Comparable<com.atlassian.mail.queue.MailQueueItem>
@Deprecated public void send() throws com.atlassian.mail.MailException
send
in interface com.atlassian.mail.queue.MailQueueItem
com.atlassian.mail.MailException
public String getSubject()
getSubject
in interface com.atlassian.mail.queue.MailQueueItem
public Date getDateQueued()
getDateQueued
in interface com.atlassian.mail.queue.MailQueueItem
public int getSendCount()
getSendCount
in interface com.atlassian.mail.queue.MailQueueItem
public boolean hasError()
hasError
in interface com.atlassian.mail.queue.MailQueueItem
public void execute() throws Exception
execute
in interface com.atlassian.core.task.Task
Exception
public String getLastError()
public String getBody()
public String getFromAddress()
public void setFromAddress(String fromAddress)
fromAddress
- the address the resultant e-mail should appear to be frompublic String getFromName()
public void setFromName(String fromName)
fromName
- the name to use for the sender of the mail item.Copyright © 2003–2016 Atlassian. All rights reserved.