to top
public static class

IEmail.Message

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

Class Overview

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.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

static final String HTML

Constant Value: "text/html"

static final String PLAIN

Constant Value: "text/plain"

Public Constructors

public IEmail.Message ()

public 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

public void addBcc (String address)

Parameters
address String

public void addCc (String address)

Parameters
address String

public void addTo (String address)

Parameters
address String

public Collection<String> getBcc ()

Returns
Collection<String>

public String getBody ()

Returns
String

public Collection<String> getCc ()

Returns
Collection<String>

public String getContentType ()

Returns
String

public String getSender ()

Returns
String

public String getSubject ()

Returns
String

public Collection<String> getTo ()

Returns
Collection<String>

public boolean isHtml ()

Returns
boolean

public void setBody (String body)

Parameters
body String

public void setContentType (String contentType)

Parameters
contentType String

public void setHtml (boolean html)

Parameters
html boolean

public void setSender (String sender)

Parameters
sender String

public void setSubject (String subject)

Parameters
subject String

public void setTos (String[] recipients)

Set the recipients. All previously added recipients will be replaced. to append to the recipients list.

Parameters
recipients String: an array of recipient email addresses

See also: