aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes question in javaMail 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 "question in javaMail" Watch "question in javaMail" New topic
Author

question in javaMail

Irakli Bliadze
Greenhorn

Joined: Dec 09, 2011
Posts: 17
i sending mail with javaMail, i did all, sending attachment but i can not add signature to mail text,
anyone can suggest how to do this? and if pssible show it
Raphael Okochu
Greenhorn

Joined: Jul 17, 2009
Posts: 22
Hi Irakli, if your signature consists of only plain text, why not append the signature to the end of the message body. Otherwise consider using a multipart message.


SCJP 5
Irakli Bliadze
Greenhorn

Joined: Dec 09, 2011
Posts: 17
yes i have multipart because i needed to to attachment and so on,
can you write me little demonstration script or signiture in multipart script?
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Check the extensive tutorial linked in http://www.coderanch.com/how-to/java/JavaEnterpriseEditionFaq; it shows almost all aspects of JavaMail with code examples.
Irakli Bliadze
Greenhorn

Joined: Dec 09, 2011
Posts: 17
thank you for this tutorial, i think it will help me
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19693
    
  20

Signatures are just part of the message body. They're not different from the rest of it. All you need to do is include the signature in your body. For plain text bodies / body parts that's easy, for HTML bodies / body parts you need to embed it into your existing HTML.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: question in javaMail