com.cafesoft.core.smtp
Class SendMail

java.lang.Object
  |
  +--com.cafesoft.core.smtp.SendMail

public class SendMail
extends Object

SendMail is a wrapper to cscore smtp classes to facilitate sending an email message.


Constructor Summary
SendMail(String smtpHost, String smtpTo, String smtpFrom, String subject, String body)
          Send mail using the given parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SendMail

public SendMail(String smtpHost,
                String smtpTo,
                String smtpFrom,
                String subject,
                String body)
         throws UnknownHostException,
                UnknownUserException,
                IOException
Send mail using the given parameters.

Parameters:
smtpHost - - The dns name or IP address of the mail transport host
smtpTo - - The email address to send to
smtpFrom - - The email address of the sender
subject - - The message subject
body - - The message body
Throws:
IOException - if trouble communicating with the SMTP server.
UnknownHostException - if the SMTP user is invalid.
UnknownUserException - if the SMTP server host is invalid.


Generated on 10:40:31 AM September 10, 2003, © 1996-2003 Cafésoft LLC. All rights reserved.