Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

setting a message header for requesting a Read Receipt for mail  RSS feed

 
Shrinivas Mujumdar
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to request a read receipt for the mail which I am sending through my application.


I am curious to know which valus i should set in a request header to achieve this.You need to set a message header.

Also, It will be really great help if somebody could point me to linkwhere I will get list of values we can set in message.setHeader(..)method & their significance.

Thanks in Advance,
Shriniwas
[ April 24, 2008: Message edited by: Shrinivas Mujumdar ]
 
Shrinivas Mujumdar
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends,

I could request for a read receipt by setting "Disposition-Notification-To" header value. I tested this with MS Outlook & It works.

code snippet will look like this:

msg.setHeader("Disposition-Notification-To", "abc@xyz.com");

In general,
msg.setHeader("Disposition-Notification-To", "<<mail address where you want to receive read receipt>>");

Thanks,
Shriniwas
[ April 28, 2008: Message edited by: Shrinivas Mujumdar ]
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note that this doesn't work with all email clients and/or servers. In general, if the mail goes beyond a single mail server (e.g., if you send it to an address outside of your company), it won't work.

The ultimate source for universally used email headers is the SMTP specification.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!