Actually, the sun.* packages are "internal" to Sun, and not guaranteed to
remain in the current form at any time. (Of course, they've been saying that
for the past three years, and I've never seen the implementation change one
iota....)
A better solution is the JavaMail API, available as a free download from
Sun. Not only does it support the sending of mail to various systems
(including SMTP), it also provides transparent support for attachments as
well as retrieving mail from IMAP or POP servers (as well as others).
Check the archives--this is probably a FAQ and somebody's already most
likely posted a URL for it; if not, it's somewhere off the
www.javasoft.com/products page.
Ted Neward
Author: "Core OWL 5.0", "Advanced OWL 5.0", "Server-Side Java"
http://www.manning.com )
http://www.javageeks.com/~tneward
-----Original Message-----
From: Ron Reynolds <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, December 01, 1999 7:12 AM
Subject: Re: E-mail from a Servlet
>sun.net.smtp.SmtpClient
>best documentation i've found on this class is at
>http://home.att.net/~baldwin.rick/Advanced/Java690.htm
>HTH! :)
>................ron.
>
>-----Original Message-----
>From: JBADRI <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>Date: Wednesday, December 01, 1999 5:40 AM
>Subject: E-mail from a Servlet
>
>
>>Hi,
>>
>> How to Send Mail from a Java Servlet.
>>
>>Regards
>>Badri
>>Infosys Technologies Limited
>>Phone: 8520261-2012
>>E-mail: [EMAIL PROTECTED]
>>
>>__________________________________________________________________________
_
>>To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
>>of the message "signoff SERVLET-INTEREST".
>>
>>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>>Resources: http://java.sun.com/products/servlet/external-resources.html
>>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html