Constructor Summary |
|
public | SMTP(String sHost) This create an SMTP object using the Standard Port 25. |
public | SMTP(String sHost, int iPort) This create an SMTP object using the Specified Port iPort. |
public | SMTP(String sHost, int iPort, String smtpAuthUser, String smtpAuthPass) Claudio Pi (04-02-2003)
This method creates an SMTP object using the specified host, port, authentication username and password. |
public | SMTP(String sHost, String smtpAuthUser, String smtpAuthPass) Claudio Pi (04-02-2003)
This method creates an SMTP object using the specified host, authentication username and password. |
public | SMTP(Properties props) This create an SMTP object using the Informations from a Properties object. |
Method Summary |
|
public void | addFile(String sFile) This method attaches to the SMTP object for use in sending mail to. |
public void | addRecipient(String sAddress) This method adds Recipients to the SMTP object for use in sending mail to. |
public void | addRecipient(String sAddress, int iRecipientType) This method adds Recipients to the SMTP object for use in sending mail to. |
public void | addRecipients(String sCommaSepRecipients) This method adds Recipients to the SMTP object for use in sending mail to. |
public void | addRecipients(String sCommaSepRecipients, int iRecipientType) This method adds Recipients to the SMTP object for use in sending mail to. |
public java.util.Properties | getSMTPServers() |
public static void | main(String args) This is a main program for testing the SMTP class. |
public void | run() This Method does the Coummunication with the SMTP server and sends the mail. |
public void | sendMail() This Method starts the Thread which Communicates with the SMTP server. |
public void | setAuthPassword(String sAuthPass) fmc 04/03/03. |
public void | setAuthUser(String sAuthUser) fmc 04/03/03. |
public void | setBody(String sBody) This method sets the body of the mail message. |
public void | setBodyMimeType(String sMimeType) |
public void | setCloseResponse(String sClose) Sets the Close Response of the SMTP protocol. |
public void | setDataResponse(String sData) Sets the Data Response of the SMTP protocol. |
public void | setEndDataString(String sEndDataString) This method sets the Ending Character String to inicate the end of the message body. |
public void | setErrorResponse(String sError) Sets the Error Response of the SMTP protocol. |
public void | setFromAddress(String sAddress) This method sets the EMail address of the person the message is from. |
public void | setHost(String sHost) This sets the Hostname of the SMTP Server. |
public void | setOkResponse(String sOk) Sets the OK Response of the SMTP protocol. |
public void | setOpenResponse(String sOpen) Sets the Open Response of the SMTP protocol. |
public void | setPort(int iPort) This sets the port number of the SMTP server. |
public void | setSMTPServers(java.util.Properties newSMTPServers) Sets the Properties object containing the information about SMTP settings. |
public void | setSenderHost(String sSenderHost) This method sets the Sender Host of the message. |
public void | setSubject(String sSubject) Sets the Subject of the E-Mail. |
public void | setTimeStampFormat(String sFormat) Sets the TimeStampFormat used in the e-mail. |
public boolean | waitForMailSendToComplete(int iSeconds) This method waits iSeconds number of seconds to check to see if mail was sent successfully or not. |