• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

setting a message header for requesting a Read Receipt for mail

 
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic