File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes adding logo to emails with JTextPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "adding logo to emails with JTextPane" Watch "adding logo to emails with JTextPane" New topic
Author

adding logo to emails with JTextPane

Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
Hi guys,

I have a JTextPane with a logo (JPG) and some text. Does anyone know how to email the JTextPane content??? (logo + text)

my code looks like this:

Message msg = new MimeMessage(session);
msg.setSubject(subject);
msg.setText(userMessage);


so basically i need something like:

msg.???(myJTextPane?)

anyone?

Thanks
Ppr
Jignesh Kakkad
Ranch Hand

Joined: Apr 09, 2004
Posts: 49
Bt May i know how to send the mail using JAVAMAIL API..?
May i know free smtp server...?

Thanx
Jignesh


Jignesh Kakkad<br />Cellent Technologies Pvt Ltd<br />Nariman Point<br />Mumbai
Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
what?
can you elaborate?
Jignesh Kakkad
Ranch Hand

Joined: Apr 09, 2004
Posts: 49
May i have code which is running..?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: adding logo to emails with JTextPane