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.
 void send(java.lang.String sender, java.lang.String replyTo, java.lang.String recipient, java.lang.String subject, java.lang.String content)
          Send the specified message.
 

Method Detail

init

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

void send(java.lang.String sender,
          java.lang.String recipient,
          java.lang.String subject,
          java.lang.String content)
          throws MailException
Send the specified message. Note that if your outbound mail server implements SPF, then the sender must be a valid address on your outbound mail server to avoid being ignored as spoofed email.

Throws:
MailException

send

void send(java.lang.String sender,
          java.lang.String replyTo,
          java.lang.String recipient,
          java.lang.String subject,
          java.lang.String content)
          throws MailException
Send the specified message. Works like the basic send, but with a replyTo email address.

Throws:
MailException