Read Receipt for Email using Java Mail

hi,
i am trying to implement requesting the read receipts for the email sent out.
for that i got some information that by setting header "Disposition-Notification-To" and the value should be "<Destination email address>"
should i need to make any changes in the mailing server or i can handle it in my code to save it in the database.
can some one please guide me so that i can implement this.
Thank You

Hi Bshannon,
From your response, I understand that setting Disposition-Notification does not give a complete result for the read-receipts (We do not receive notifications from all domains, I tried gmail, yahoo, and other domains as well).
Since your reply was sent 2 years ago, I would like to know any new solution found to get a complete read-receipt  notifications from all domains?.
Your response would be highly appreciated.
Thanks,
Stalin R

Similar Messages

  • HT201320 how do i set up read receipts for emails from the iphone?

    how do i set up read receipts for emails from the iphone?

    That is not a feature of the Mail app. Check with your email provider to see if it's a service they offer.

  • Problem in retrieving email using java mail api

    hi,
    In my project,i am retrieving mails from a particular email id.
    I am able to retrieve the latest mails and save it in a folder in my system.
    The problem is whenever i run the program eventhough the most recently received mail in inbox is retrieved and saved,again it is retrieving the same one and saving it in the same folder(not repeating).
    I tried to check the newmessages in the inbox using the folder.hasNewMessage() method in java mail api,but the method is returning false only regardless new mail is there in inbox or not.
    I want to read the unread messages only.Dont want to retrieve the already read mails.
    I got the mail retrieving code from the below site.(sorry not posting the code because it is so long and having 4 classes)
    http://www.builderau.com.au/program/java/soa/Getting_the_mail_in_receiving_in_JavaMail/0,39024620,39228060,00.htm
    Can anyone tell me how to read unread mails in the inbox?
    Thanks a lot

    hi parvathi
    i think your mail program is receving mails using imap
    the imap is only receve the mail from server but the pop is deleting the mails after receving
    use the following sample code
    package com.sfrc.mail.pop;
    import javax.mail.*;
    import javax.mail.internet.*;
    import com.sun.mail.handlers.message_rfc822;
    import java.util.*;
    import java.io.*;
    * Owner: SFRC IT Solutions Pvt Ltd
    * Author:Arunkumar Subramaniam
    * Date :12-06-2006
    * File Name: AttachRecive.java
    public class AttachRecive
    public static void main(String args[])
    try
    String popServer="192.168.1.1";
    String popUser="pl";
    String popPassword="password";
    // Create empty properties
    Properties props = new Properties();
    // Get session
    Session session = Session.getDefaultInstance(props, null);
    // Get the store
    Store store = session.getStore("pop3");
    store.connect(popServer, popUser, popPassword);
    // Get folder
    Folder folder = store.getFolder("INBOX");
    folder.open(Folder.READ_ONLY);
    // Get directory
    Message message =folder.getMessages();
    Multipart mp = (Multipart)message.getContent();
    for (int i=0, n=mp.getCount(); i<n; i++) {
    Part part = mp.getBodyPart(i);
    String disposition = part.getDisposition();
    // Close connection
    folder.close(false);
    store.close();
    catch (Exception ex)
    System.out.println("Usage: "
    +" popServer popUser popPassword");
    System.exit(0);
    Regards
    Arunkumar Subramaniam
    SFRC IT Solutions Pvt Ltd
    Chennai

  • How do i get a read receipt for email

    How do I get a read receipt in mac e-mail?

    There is a workaround, but it's not reliable, so I don't recommend it.
    Email receipts are not a standard feature of email. Some email programs support it, some don't. If someone reads email online (ie, in webmail), no read receipt is created. Even if someone uses Outlook (which supports it), they have to turn the send-receipt feature on.
    So if you don't receive a receipt, you can not, unfortunately, know for sure that the message was not read.
    Matt

  • Is there read receipt for email

    read receipt's are available option for text and iMessages are the available for email?

    There is nothing even remotely reliable.
    If a receipt is important to you, send a letter certified mail.
    I have occasionally received an e-mail that requests a receipt prior to reading it. I do what everyone does, I delete the e-mail unread.

  • Attach multiple emails to one master email using Java mail API

    Java version: JDK 1.5.0_15
    Hi,
    I am using Java API to send email using our corporate microsoft exchange server. Everything is working fine, now I have a requirement to attach multiple emails to one master email and send.
    Question:
    Using JAVA API is it possible to attach multiple emails to one email?
    Regards,
    Arup

    The beginning of this FAQ entry tells you how to attach one message to another message:
    http://www.oracle.com/technetwork/java/javamail/faq/index.html#forward

  • Read  the email using java mail api for Imap account which is secured SSL

    hello,
    I am trying read the new mails on my imap account... i am not able to connect to the imap account... could anyone help me out ..
    below is the code
    public class EmailImapGateway implements MessageCountListener{
    private static final long serialVersionUID = 1L;
         private Session session = null;
         private IMAPStore store = null;
         private IMAPFolder folder = null;
         Properties props = new Properties();
         public void ejbCreate() {
         try {
         if (session == null)
              session = Session.getDefaultInstance(props, null);
              if (store == null || !store.isConnected()) {
    String host, name, passwd;
         host = "host";
              name = "user";
              passwd = "passwd";
              String SSL_FACTORY = "javax.net.ssl.SSLSocketFactory";
              props.setProperty("mail.imap.socketFactory.class", SSL_FACTORY);
              props.setProperty("mail.imap.socketFactory.fallback", "false");
              props.setProperty("mail.imap.socketFactory.port", "888");
              java.security.Security.setProperty( "ssl.SocketFactory.provider", SSL_FACTORY);
              props.put("mail.imap.host", host);
              props.put("mail.imap.port", "888");
              store = (IMAPStore) session.getStore("imap");
              store.connect();
              folder = (IMAPFolder) store.getFolder("Inbox");
              folder.open(Folder.READ_WRITE);
              int t = folder.getUnreadMessageCount();
              System.out.println("getunreadmessagecount is :" + t);
    }catch (Exception e) {
              e.printStackTrace();
         } finally {
              try {
                   folder.close(true);
                   store.close();
              } catch (MessagingException e) {
                   e.printStackTrace();
         public void ejbActivate() throws EJBException, RemoteException {
              // TODO Auto-generated method stub
         public void ejbPassivate() throws EJBException, RemoteException {
              // TODO Auto-generated method stub
         public void ejbRemove() {
              // TODO Auto-generated method stub
         public void messagesAdded(MessageCountEvent arg0) {
              System.out.println("Message is added in inbox");
         public void messagesRemoved(MessageCountEvent arg0) {
              System.out.println("Message is removed from inbox");
    it is not able to connect to my account
    Edited by: bhavna84 on Sep 8, 2008 11:10 PM
    Edited by: bhavna84 on Sep 8, 2008 11:20 PM

    Yes, see my previous post.
    He replied:
    hello
    In your code ur mention IMAP port 888
    but by default its 143 so chk your server configuration for IMAP port no.

  • How to receive HTML email using JAVA Mail API?

    Hello!
    I am developing WEB Mail System. There is a little problem. I am unable to receive mail in HTML format. The mail is being received in only text format currently. What method do i need to use to achieve this functionality currently i am using
    MimeMessage message = mail.getMessage();
    if(message.isMimeType("text/plain")){
    String str_message_body = message.getContent().toString();
    else
    Multipart multipart = (Multipart)message .getContent();
    Kindly advise me regarding that because i am in a state of fix right now and unable to proceed further.
    I will really appreciate a prompt response from you.
    Regards,
    Burhan Ramay.

    HTML is a text format too, so you do
    if(message.isMimeType("text/html")){
    String str_message_body = message.getContent().toString();
    }

  • Using Java Mail API from Tomcat

    Hello,
    Purely as an academic exercise I have written a JSP page which, upon being requested from the client's browser, should send me a default email using Java Mail Api.
    here is the code :
    import java.util.*;
    import java.io.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    public class TestMail {
        static String msgText1 = "success this time 12";
        static String msgText2 = "This is the text in the message attachment.";
        public String sendIt() {
            String to = "<my email";
            String from = "<anything>";
            String host = "<my ip address of smtp server>";
            boolean debug = false;
            Properties props = new Properties();
            props.put("mail.smtp.host", host);
            Session session = Session.getInstance(props, null);
    .....The code works fine as a stand alone app but when called from JSP page it hangs on the Session.getInstance line. I can only guess that this might be a security issue with the container not allowing access to the smtp server ?
    Can anyone give me a clue ???

    Your Tomcat log files should spell out the problem for you.
    My Tomcat installation does not come with the Java Mail API. I had to add the mail and activation jar files to the server/common.lib directory (or the server's shared/lib or the WEB-INF/lib of your application.)
    HTH.

  • How to use java mail to send email to hotmail box

    how to use java mail to send email to hotmail box??
    i can send emails to other box(my company's email account) but for hotmail, the program didnt print any err or exception the recepient cant receive the mail.
    thanks

    you ust to download activation.jar and mail.jar and add them to your build path.
    i have used the googlemail smtp server to send mail the code is following:
    public void SendMail()
    Properties props = new Properties();
    props.put("mail.smtp.user", username);
    props.put("mail.smtp.host", host);
    props.put("mail.smtp.port", port);
    props.put("mail.smtp.starttls.enable","true");
    props.put("mail.smtp.auth", "true");
    props.put("mail.smtp.socketFactory.port", port);
    try{
         Authenticator auth = new SMTPAuthenticator(username,password);
    Session session = Session.getInstance(props, auth);
    MimeMessage msg = new MimeMessage(session);
    msg.setText(text);
    msg.setSubject(subject);
    msg.setFrom(new InternetAddress(senderEmail));
    msg.addRecipient(Message.RecipientType.TO, new InternetAddress(receiver));
    Transport.send(msg);
    }catch(Exception ex) {
         System.out.println("Error Sending:");
    System.out.println(ex.getMessage().toString());
    and this the SMTPAuthenticator Class which you will need too.
    class SMTPAuthenticator extends javax.mail.Authenticator {
         private String fUser;
         private String fPassword;
         public SMTPAuthenticator(String user, String password) {
         fUser = user;
         fPassword = password;
         public PasswordAuthentication getPasswordAuthentication() {
         return new PasswordAuthentication(fUser, fPassword);
         }

  • Read receipts for mail

    Is there any way to get a read receipt with Mail like there was when I had Outlook in a previous life? Cant find how to block a read receipt when requested either. Any help would be appreciated.
    Thanks

    The Mail application does not include a read receipt request for sent messages nor does it provide a read receipt without your knowledge when requested by the sender of a message when opening a received message.
    I consider this an invasion of privacy. A minor one but an invasion of privacy nevertheless.
    Via the Terminal, you can have Mail "request" a read receipt for all sent messages but this will work only if the recipient's email client supports this and the recipient enables the option.
    http://discussions.apple.com/message.jspa?messageID=2297045#2297045

  • Mail how do i set a read receipt for messages I send

    mail how do i set a read receipt for messages I send

    Hi Sunny
    There's no built-in option, and the workaround is rather complex. I would advise against it, since "read receipts" are not a standard part of the email protocol, and most email clients cannot return receipts or have it turned off anyway.
    Matt

  • Can i use java mail APIs to read Unix mail

    hi
    can i use java mail APIs to read Unix mail?
    Unix has "mail" command which can be used to access mails on the Unix system.
    is it possible to execute mail & access unix mails remotely using POP/IMAP
    thanks in advance

    There are JavaMail providers that allow you to access the Unix mail spool files directly. Alternatively the standard JavaMail API can access a POP or IMAP server, if one is installed.

  • How to Read An Attachment Using Java Mail

    Hi
    I Am Able To Read The Mail Using Java Mail ,but Unable To Read The Attachment Which Comes Along With The Mail.
    Please Help Me , In Reading The Attachment.

    Hi
    I Am Able To Read The Mail Using Java Mail ,but
    t Unable To Read The Attachment Which Comes Along
    With The Mail.
    Please Help Me , In Reading The Attachment.Do you mean:
    - I only recieve .txt or .doc attachments and I want to see the contents? Or could you get a .jpg as well?
    or
    - Do you need to seperate the attachment from the e-mail and then view it?

  • Tow read receipt for one email

    dear all
    I was  installed exchange 2013 in stead of 2003 few days ago from that time Iam facing problem with the read receipt
    one is generated from the server and the other upon client request for read report the means anyone send us email he received tow read messages for the email the first is onbehalf the receipt and the other upon the sender request for exmaple
    musheer sheikhali <[email protected]>; on behalf of; musheer sheikhali
    musheer sheikhali <[email protected]>;
    these are 2 read receipt for the same email

    Hi,
    May I know how you could tell where the read receipts are generated from? What is your Outlook version?
    Sometimes Cached Mode may cause the duplicate read receipts issue, this is because the cached file is corrupted, please run Scanpst.exe to repair the .ost file to test the result:
    http://support.microsoft.com/kb/272227/en-us
    You may also remove the delegates for this account to try again.
    Regards,
    Melon Chen
    TechNet Community Support

Maybe you are looking for

  • Constant freezing eventually led to mini port not working

    I run bootcamp, and it happens on windows as well so it must be a hardware problem. Unfortunately my coverage is up and I'm unable to pay for anything right now. Basically, the computer was freezing up for a while, a lot of the time it just freezes u

  • Reporting Services connecting to a PowerPivot Workbook hosted on Sharepoint Online

    Hi, we developed a PowerPivot Workbook and published on our PowerBI site based on a Sharepoint Online E3 subscription. We use it to display PowerView Dashboard and analyse sales results. On-prem we also have a Reporting Services (stand alone installa

  • Projector Doesn't Correctly Identify Resoloution

    Hi! I recently purchased an Optoma Pro360W projector: http://www.amazon.com/Optoma-PRO360W-3D-Capable-Multimedia-Projector/dp/B004VELB B8/ref=sr_1_1?ie=UTF8&qid=1345303284&sr=8-1&keywords=optoma+pro360 I have two MacBook Air's. The first is an 11.6"

  • Show Widgets in Finder

    Hi, Cannot find my downloaded widgets in Finder, only the pre-installed ones. They must live somewhere in there, but where?! Also, can you "Open package contents" and alter some of their files and see how they were created? Cheers MacMan

  • Smart form back page not printing

    Hi All, in a smrt form I am using two pages as first page and term page. for first page the next page is term page with no condition, but it is not getting printed. help please. T & R, AKS