|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--i3mclient.email.EmailSend
This class send offline message in a email. Not used yet. EmailSend is created as a Singleton Pattern
Field Summary | |
static String |
CONNECTION_ERROR
|
static String |
INCORRECT_EMAIL
|
static String |
PROVIDER_SMTP
|
Method Summary | |
void |
addErrorListener(ErrorListener listener)
Add a listener for errors. |
static EmailSend |
getInstance()
Returns an instance of this class (singleton construction) |
void |
removeErrorListener(ErrorListener listener)
Remove a listener for errors. |
void |
send(String reply,
String recipient,
String message)
Send a email to a recipient. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String CONNECTION_ERROR
public static final String INCORRECT_EMAIL
public static final String PROVIDER_SMTP
Method Detail |
public static EmailSend getInstance()
public void send(String reply, String recipient, String message)
reply
- The name of senderrecipient
- The email address of recipientmessage
- The message textpublic void addErrorListener(ErrorListener listener)
listener
- The lister will be informed about errors.public void removeErrorListener(ErrorListener listener)
listener
- The lister will be no longer informed about errors.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |