IEmail.Message

public static class IEmail.Message
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.IEmail.Message


Container for email message data.

Summary

Constants

String HTML

String PLAIN

Public constructors

IEmail.Message()
IEmail.Message(String to, String subject, String body)

Convenience constructor: create a simple message

Public methods

void addBcc(String address)
void addCc(String address)
void addTo(String address)
Collection<String> getBcc()
String getBody()
Collection<String> getCc()
String getContentType()
String getSender()
String getSubject()
Collection<String> getTo()
boolean isHtml()
void setBody(String body)
void setContentType(String contentType)
void setHtml(boolean html)
void setSender(String sender)
void setSubject(String subject)
void setTos(String[] recipients)

Set the recipients.

Constants

HTML

String HTML

Constant Value: "text/html"

PLAIN

String PLAIN

Constant Value: "text/plain"

Public constructors

IEmail.Message

IEmail.Message ()

IEmail.Message

IEmail.Message (String to, 
                String subject, 
                String body)

Convenience constructor: create a simple message

Parameters
to String: Single destination address
subject String: Subject
body String: Message body

Public methods

addBcc

void addBcc (String address)

Parameters
address String

addCc

void addCc (String address)

Parameters
address String

addTo

void addTo (String address)

Parameters
address String

getBcc

Collection<String> getBcc ()

Returns
Collection<String>

getBody

String getBody ()

Returns
String

getCc

Collection<String> getCc ()

Returns
Collection<String>

getContentType

String getContentType ()

Returns
String

getSender

String getSender ()

Returns
String

getSubject

String getSubject ()

Returns
String

getTo

Collection<String> getTo ()

Returns
Collection<String>

isHtml

boolean isHtml ()

Returns
boolean

setBody

void setBody (String body)

Parameters
body String

setContentType

void setContentType (String contentType)

Parameters
contentType String

setHtml

void setHtml (boolean html)

Parameters
html boolean

setSender

void setSender (String sender)

Parameters
sender String

setSubject

void setSubject (String subject)

Parameters
subject String

setTos

void setTos (String[] recipients)

Set the recipients. All previously added recipients will be replaced. addTo(String) to append to the recipients list.

Parameters
recipients String: an array of recipient email addresses