Jan:

String contentType = "text/html";
String message = "Hi there..";
Message msg = new MimeMessage(session);
msg.setContent(message, contentType);
Transport.send(msg);

Sverige Altid!

Martin Gainty

______________________________________________

Disclaimer and confidentiality note

Everything in this e-mail and any attachments relating to the official business of Laconia Data Systems (LDS) is proprietary to the company. It is confidential, legally privileged and protected by law. LDS does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of LDS.

The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way.

LDS can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference.

             _______________________________________________

 

>From: Jan Aren� <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: JavaMail
>Date: Wed, 28 Aug 2002 10:31:06 +0200
>MIME-Version: 1.0
>Received: from [192.18.99.108] by hotmail.com (3.2) with ESMTP id MHotMailBF35D5F6007A400431D0C012636CA1C00; Wed, 28 Aug 2002 01:34:41 -0700
>Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107])by swjscmail2.java.sun.com (Postfix) with ESMTPid 07CD722C9C; Wed, 28 Aug 2002 02:28:59 -0600 (MDT)
>Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d) with spool id 2593169 for [EMAIL PROTECTED]; Wed, 28 Aug 2002 02:27:01 -0600
>Received: from smtp2.home.se (smtp2.home.se [195.66.35.201]) by swjscmail1.java.sun.com (Postfix) with ESMTP id 8D057480F for <[EMAIL PROTECTED]>; Wed, 28 Aug 2002 02:27:00 -0600 (MDT)
>Received: from extra [EMAIL PROTECTED] [195.162.67.85] by smtp2.home.se with Novell NIMS $Revision: 2.88.1.1 $ on Novell NetWare; Wed, 28 Aug 2002 10:24:29 +0200
>From [EMAIL PROTECTED] Wed, 28 Aug 2002 01:35:47 -0700
>Delivered-To: [EMAIL PROTECTED]
>X-Priority: 3 (Normal)
>X-MSMail-Priority: Normal
>X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
>Importance: Normal
>Message-ID: <[EMAIL PROTECTED]>
>Sender: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]>
>
>Hi
>
>I am testing the JavaMail API (javax.mail.*) and it is working fine.
>Now I want do add files and send a html-mail, but I can't figure out how.
>Can anyone help me or give me an example / url ?
>
>//Jan
>
>===========================================================================
>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://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.com


Send and receive Hotmail on your mobile device: Click Here
=========================================================================== 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com

Reply via email to