TsBiff 1.3


ts.mail
Interface TransportAgent

All Superinterfaces:
SafeTerminate
All Known Implementing Classes:
SmtpAgent

public interface TransportAgent
extends SafeTerminate

This interface represent an abstract Mail Transport Agent. A MTA is used for sending mail messages. Implementors should implement the sendMail method which will be the actual protocol used for sending mail.

Version:
$Id: TransportAgent.java,v 1.5 1999/03/21 10:28:13 hauk Exp $
Author:
Jan-Henrik Haukeland <hauk@tildeslash.com>
See Also:
SmtpAgent

Method Summary
 java.lang.String getProtocol()
           
 void sendMail(MailModel aMail)
          Send the mail using a certain protocol.
 
Methods inherited from interface ts.biff.SafeTerminate
canTerminate
 

Method Detail

sendMail

public void sendMail(MailModel aMail)
              throws SendMailException
Send the mail using a certain protocol.
Throws:
SendMailException - Is thrown if the mail for some reason could not be sent

getProtocol

public java.lang.String getProtocol()
Returns:
The protocol used

TsBiff 1.3