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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 hostsmtpTo - - The email address to send tosmtpFrom - - The email address of the sendersubject - - The message subjectbody - - 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.