• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

adding logo to emails with JTextPane

 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bt May i know how to send the mail using JAVAMAIL API..?
May i know free smtp server...?

Thanx
Jignesh
 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what?
can you elaborate?
 
Jignesh Kakkad
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May i have code which is running..?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic