Results 1 to 12 of 12
Thread: question in javaMail
- 03-07-2012, 06:37 AM #1
Member
- Join Date
- Dec 2011
- Location
- Tbilisi (Georgia)
- Posts
- 24
- Rep Power
- 0
- 03-07-2012, 08:23 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Re: question in javaMail
I think this should done by the mail client you have. As far as I remember JavaMail doesn't have a direct way to do that. Enable the signature on your mail client and try.
- 03-07-2012, 08:25 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Re: question in javaMail
BTW, if your content is text/plain then adding signature into it make your mail content like multipart. It can cause lots of issues on your implementations later.
- 03-07-2012, 08:40 AM #4
Member
- Join Date
- Dec 2011
- Location
- Tbilisi (Georgia)
- Posts
- 24
- Rep Power
- 0
Re: question in javaMail
yes i have multipart, this is part of my code:
but what i should add to add text in the left bottom side?Java Code:BodyPart messageBodyPart = new MimeBodyPart(); messageBodyPart .setContent(text,"text/html;charset=UTF-8"); Multipart multipart = new MimeMultipart(); multipart.addBodyPart(messageBodyPart); messageBodyPart = new MimeBodyPart(); DataSource source = new FileDataSource(filename); messageBodyPart.setDataHandler(new DataHandler(source)); messageBodyPart.setFileName(MimeUtility.encodeWord(attachedName, "utf-8", "Q")); multipart.addBodyPart(messageBodyPart);Last edited by Eranga; 03-07-2012 at 08:45 AM. Reason: code tags added
- 03-07-2012, 08:46 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Re: question in javaMail
- 03-07-2012, 08:50 AM #6
Member
- Join Date
- Dec 2011
- Location
- Tbilisi (Georgia)
- Posts
- 24
- Rep Power
- 0
Re: question in javaMail
yes signature, i mean if there isn't such term "signature" then i could add text on the left bottom to make such affect as it's signature or i can otherwise add signature?
- 03-07-2012, 12:53 PM #7
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Re: question in javaMail
Did you try what I am said with the mail client.
In general you can attach part of the text at the end to the content as the signature, either in HTML or text.
- 03-07-2012, 01:09 PM #8
Member
- Join Date
- Dec 2011
- Location
- Tbilisi (Georgia)
- Posts
- 24
- Rep Power
- 0
Re: question in javaMail
from this computer i can't send mails from gmail because proxy isn't allowing me, later i will try, thx for advice it would be good decision
- 03-08-2012, 01:56 PM #9
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Re: question in javaMail
You are welcome.
Give a try and let me know.
- 03-09-2012, 06:06 AM #10
Member
- Join Date
- Dec 2011
- Location
- Tbilisi (Georgia)
- Posts
- 24
- Rep Power
- 0
Re: question in javaMail
hello
i tryed to add signature in mail client, but it don't work for mails from javaMail but i will add signature manually, when i will send mail i will add signature text to the left bottom of the mail
- 03-09-2012, 03:25 PM #11
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Re: question in javaMail
In general signature is just another text bulk. Difference is that the mail client automatically handles based on your configurations. You can do the same with the JavaMail too, manually as you did.
Is that your mail client configured properly?
- 03-12-2012, 06:20 AM #12
Member
- Join Date
- Dec 2011
- Location
- Tbilisi (Georgia)
- Posts
- 24
- Rep Power
- 0
Similar Threads
-
Trying JavaMail
By fred2028 in forum NetworkingReplies: 0Last Post: 09-27-2011, 03:51 PM -
Help with javamail ??
By nikunj in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 02-02-2011, 12:12 PM -
Javamail
By johniem in forum New To JavaReplies: 0Last Post: 07-14-2010, 03:00 PM -
Javamail
By v_mallikarjun in forum Advanced JavaReplies: 14Last Post: 04-18-2008, 07:32 PM -
This is Regarding JSP with javamail
By venkatkomalli in forum Advanced JavaReplies: 3Last Post: 07-19-2007, 02:07 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks