Yes. And to make it look as cc add following
                                  mailClient = new SmtpClient(Server);
                                        PrintStream ps =mailClient.startMessage();
                                        ps.println("To: "[EMAIL PROTECTED]);
                                        ps.println("CC: "[EMAIL PROTECTED]);
This will send mail to [EMAIL PROTECTED] and CC to
[EMAIL PROTECTED]

Hope that helps

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
Elteto Zoltan
Sent: Friday, July 07, 2000 2:28 PM
To: [EMAIL PROTECTED]
Subject: Re: CC in mail


you can write

sendmail.to(list[i]);

where list contains the email addresses
but it won't be a real CC :(
It will be a multimail solution.

regards zoli

----- Original Message -----
From: "Cheong Takhoe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 07, 2000 11:06 AM
Subject: CC in mail


> Hi,
>
> How do I do a CC in an email generated by a jsp page
> using a bean that has the sun.net.smtp.SmtpClient class?
>
> regards,
> Cheong Takhoe
>
>
___________________________________________________________________________
> 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