Hi Simta.

  right now iam working in java mail api.
  if you have done this.
  please can you tell me where can i add Cc: Bcc: and Attachments
  to the mail.

  Example (part of a code):
  //To Address
  InternetAddress[] to = {new InternetAddress(str_to)};
  msg.setRecipients(Message.RecipientType.TO, to);
//From Address
  msg.setFrom(new InternetAddress(str_from));
//Subject
  msg.setSubject(str_subject);
  //The message's MIME type is set to text/plain.
  msg.setContent(str_content, "text/plain");

Regards
Senthil.


At 03:35 PM 14/09/2001 +0500, you wrote:
>  Hi all,
>           I am sending a mail from JSP using Java Mail API. It contains a
> lot of text. I want that text to be formatted in a better way. Right now
> the whole test is coming in a single line, which looks very odd when ever
> that mail is opened. Is there any way for formatting that? I wanted to
> put a table (like HTML table) in that subject if possible. So that it
> looks decent...How to format that?
>Thanks in advance
>Smita
>-------------------------------------------------
>This mail sent through : http://mail.sify.com
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to