This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
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, Cellent Technologies Pvt, Nariman Point, 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
 
It's not a secret anymore!