forward an email as an outlook format ?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sharona_f
Posted On:   Thursday, October 11, 2001 03:30 AM

hi , I would like to forward a specific email with a new text. please show me how to concatinate the new text with a forward message to the original one (even if it has attachments) - (like outlook) the following code sends the specific message as an envelope within a new message. MimeMessage msg = new MimeMessage(session); ... Multipart mp = new MimeMultipart(); MimeBodyPart mp1 = new MimeBodyPart(); mp1.setText(new text,ENCODING); mp.addBodyPart(mp1); MimeBodyPart mp2 = new MimeBodyPart(); mp2.setContent(Original email,"message   More>>

hi , I would like to forward a specific email with a new text.



please show me how to concatinate the new text with a forward message to the original one (even if it has attachments) - (like outlook)


the following code sends the specific message as an envelope within a new message.



MimeMessage msg = new MimeMessage(session);


...


Multipart mp = new MimeMultipart();


MimeBodyPart mp1 = new MimeBodyPart();


mp1.setText(new text,ENCODING);


mp.addBodyPart(mp1);


MimeBodyPart mp2 = new MimeBodyPart();


mp2.setContent(Original email,"message/rfc822");


mp.addBodyPart(mp2);


msg.setContent(mp);


...


Transport.send(msg);




please correct the code OR advise how to concatinate the new message.


thanks , Sharona

   <<Less
About | Sitemap | Contact