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