Take a look on the sun site, they have a whole white paper written up on why
nobody should use the sun.* classes.  They are undocumented and subject to
change without notice, plus it means you will never get your 100% Java
Certification.
    (*Chris*)

----- Original Message -----
From: Tim Leist <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 24, 1999 5:41 PM
Subject: Re: sun.net.smtp.SmtpClient cc method ?


>Gary,
>    A look at the source reveals the sun.net.smtp.SmtpClient class doesn't
>support a Cc or Bcc methiod, although it wouldn't be too hard to extend the
>class to include the methods yourself.
>
>Gary Lyons wrote:
>
>> In the following code snipplet I am sending email from within a servlet
>> using sun.net.smtp.SmtpClient. The mail goes to the intended recipient
>> but not to the cc. Is there a method (like sendmail.from() and
>> sendmail.to()) that I should be using for cc? Is there also one for Bcc?
>>
>> Thanks in advance
>>
>> Gary Lyons
>>
>>                     sender = someemailaddress
>>                     mailto = someemailaddress
>>
>>                     sendmail.from(sender);
>>                     sendmail.to(mailto);
>>                     // get printstream
>>                     ps = sendmail.startMessage();
>>                     // send headers.
>>
>>                     ps.println("From:"+sender);
>>                     ps.println("To:"+mailto);
>>                     ps.println("Cc:[EMAIL PROTECTED]");
>>                     ps.println("Subject: FREE Persistent Search Results
>> from Careerfile");
>>                     ps.print("\r\n"); //header area delimiter
>>
>>
___________________________________________________________________________
>> 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

Reply via email to