public interface EmailClientService extends InternetClientService
| Modifier and Type | Method and Description |
|---|---|
void |
addToAddressBook(String address,
String name)
Add an entry to the address book.
|
String |
getUserEmailAddress()
Get the email address of the user.
|
void |
setInitialMessage(String to,
String subject,
String messageBody)
Set the initial recipient, subject & message body to be used when the email client starts.
|
canRunApplication, getName, getServiceType, getSupportedClientServices, hasMultipleInstances, retrieveDetailsequals, getLocator, hashCodeString getUserEmailAddress()
SecurityException - if the caller does not have a UserPreferencePermission
with the name "read".void addToAddressBook(String address, String name) throws EntryExistsException, IOException
address - the address to be added to the address bookname - the name that should be associated with that addressEntryExistsException - if an entry with both the same name
and the same address already exists in the address book.IllegalArgumentException - if the string passed as the email address does not conform
to the internet email address formatIOException - if no more address book entries can be added
due to a lack of storage space or a limitation in the clientvoid setInitialMessage(String to, String subject, String messageBody)
to - the address to which the email should be sentsubject - the subject for the emailmessageBody - the body of the message.NullPointerException - if any of the to address, subject or message body are null.IllegalArgumentException - if the destination address is an empty string.Copyright © 2012 code4tv.com. All Rights Reserved.