org.sandev.basics.util
Interface SimpleMailSender


public interface SimpleMailSender

A simple mail send utility interface. See the platform implementation for supporting implementation classes.


Method Summary
 void init(java.lang.String host, java.lang.String username, java.lang.String password, boolean debug)
          Initialize this instance.
 void send(java.lang.String sender, java.lang.String recipient, java.lang.String subject, java.lang.String content)
          Send the specified message.
 

Method Detail

init

public void init(java.lang.String host,
                 java.lang.String username,
                 java.lang.String password,
                 boolean debug)
          throws MailException
Initialize this instance. If debug is true, then provide whatever trace information is possible, otherwise run quietly.

Throws:
MailException

send

public void send(java.lang.String sender,
                 java.lang.String recipient,
                 java.lang.String subject,
                 java.lang.String content)
          throws MailException
Send the specified message.

Throws:
MailException