i3mclient.email
Class EmailSend

java.lang.Object
  |
  +--i3mclient.email.EmailSend

public class EmailSend
extends Object

This class send offline message in a email. Not used yet. EmailSend is created as a Singleton Pattern

Author:
Gunther Wuerz

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

CONNECTION_ERROR

public static final String CONNECTION_ERROR
See Also:
Constant Field Values

INCORRECT_EMAIL

public static final String INCORRECT_EMAIL
See Also:
Constant Field Values

PROVIDER_SMTP

public static final String PROVIDER_SMTP
See Also:
Constant Field Values
Method Detail

getInstance

public static EmailSend getInstance()
Returns an instance of this class (singleton construction)

Returns:
The unique instance of this class

send

public void send(String reply,
                 String recipient,
                 String message)
Send a email to a recipient.

Parameters:
reply - The name of sender
recipient - The email address of recipient
message - The message text

addErrorListener

public void addErrorListener(ErrorListener listener)
Add a listener for errors.

Parameters:
listener - The lister will be informed about errors.

removeErrorListener

public void removeErrorListener(ErrorListener listener)
Remove a listener for errors.

Parameters:
listener - The lister will be no longer informed about errors.