org.clapper.util.mail
Interface EmailTransport

All Known Implementing Classes:
SMTPEmailTransport

public interface EmailTransport

EmailTransport defines the interface for classes that can send EmailMessage objects.

Version:
$Revision: 6735 $
Author:
Copyright © 2004-2007 Brian M. Clapper
See Also:
EmailMessage

Method Summary
 void send(EmailMessage message)
          Send an EmailMessage.
 void setDebug(boolean debug, java.io.PrintStream out)
          Enable or disable the underlying implementation's debug flag, if there is one.
 

Method Detail

send

void send(EmailMessage message)
          throws EmailException
Send an EmailMessage. This EmailTransport object is assumed to have been configured with the appropriate parameters.

Parameters:
message - the message to send
Throws:
EmailException - failed to send message

setDebug

void setDebug(boolean debug,
              java.io.PrintStream out)
Enable or disable the underlying implementation's debug flag, if there is one. Debug messages are to be written to the supplied PrintStream.

Parameters:
debug - true to enable debug, false to disable it
out - where to dump debug messages, or null for standard output. Ignored unless debug is true.


Copyright © 2004-2007 Brian M. Clapper. All Rights Reserved.