• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Mail probelm  RSS feed

 
Arathi Raj
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have program which sends email. The email that being sent has body along with which it also includes following headers.

Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Can anyone tell me how we can remove above from emails that are being sent?. I just want to send the message but not the headers.
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The message doesn't make sense without the headers. Why would you want to remove them?
 
Arathi Raj
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Paul Clapham:
The message doesn't make sense without the headers. Why would you want to remove them?




Hi
The problem I have is when I receive email, The body of email also includes those header information

Example,
I receive email as below
"
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

This email is in reference to the documents.
"


So I just want to display as

" This email is in reference to the documents. ",
and not those headers.
How to get rid of those from emails

Thanks
 
Arathi Raj
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can some one answer me what to do in the about situation I have explained

Thanks
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not quite following. You wrote the code that sends the mail - are you saying it includes those header lines in the message body without your code explicitly doing that? That sounds like a bug to me.
 
Arathi Raj
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. It includes those header information. Code doesnt explicitly define that.

Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!