• Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding and Getting Email Header....  RSS feed

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to add one header when i send a mail using java mail API,


like message.addHeader("h1","h1Value");

and when i get the reply back from the user,

i want to get the same value

like message[i].getHeader("h1");

but currently i am getting null when i perform message[i].getHeader("h1);

do i have to perform any extra step ?

Or is there any common header which comes back when the user reply to my email.

Basically my application wants to keep track on, weather the user has replied to a particular email or not.

Thanks & Regards,
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Each mail is separate from each other mail, whether it's a direct reply or not. That means there is no way to preserve headers in a response mail.
 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah, thanks but than how will i be keep track weather the user has replied to that email or not ?

Is there any other way ?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Trying to keep track of who has read or replied to an email is generally considered an invasion of privacy; people WILL try to get around such attempts. I'd advise not to get near it.
[ September 01, 2008: Message edited by: Ulf Dittmer ]
 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok. thanks a lot
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!