import NetworkConnection; import MessageException; /** * A protocal for Java to interact with SMTP to send mail messages * * @author Ben Kaiser * @author Josh Vickery * @author Dan Hawando * @version 1.1 of October 1999 * * modified from 1.1 to import the classes it will need to use. * */ public interface SendMail { /** * Attempt to open a network connection using the NetworkConneciton class * at the server and port stored in the preferance class, and send a mail * message through that connection using SMTP * * @exception MessageException * when the message is not a valid mail message */ /*will take a MailMessage, when they are avaliable, but uses a string for now.*/ public void sendMessage(String message) throws MessageException; } // interface SendMail