File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes Email delivery confirmation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Email delivery confirmation" Watch "Email delivery confirmation" New topic
Author

Email delivery confirmation

Apreet Singh
Greenhorn

Joined: Oct 10, 2012
Posts: 6
Hi

Does someone know of a way to get email delivery confirmation status when email is send using Java mail API ?

Thanks
Kemal Sokolovic
Bartender

Joined: Jun 19, 2010
Posts: 825
    
    5

Check this thread.


The quieter you are, the more you are able to hear.
Apreet Singh
Greenhorn

Joined: Oct 10, 2012
Posts: 6
Thanks.

One alternate option is to create log entry of email send attempt and have bcc to a designated id. Matching of data can be done to have delivery status. May not be advisable if high load system as this will double the number of emails being sent
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10535
    
    9

Moving to a more suitable forum...

Apreet Singh wrote:
One alternate option is to create log entry of email send attempt and have bcc to a designated id. Matching of data can be done to have delivery status. May not be advisable if high load system as this will double the number of emails being sent

Not really. Receipt on the BCC id would not necessarily ensure receipt on the original ID.

One hackish way is to include a 0px image in the body, which is provided by some servlet on your server. The call to the servlet would include the mail ID as a parameter. However, this approach would sort of ensure a read receipt. It might be noted though that the mail can be delivered but not read.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42930
    
  68
Maneesh Godbole wrote:One hackish way is to include a 0px image in the body, which is provided by some servlet on your server. The call to the servlet would include the mail ID as a parameter. However, this approach would sort of ensure a read receipt.

Not really. Many email clients by default (or by user choice) do not load images.

There is no reliable way to get a delivery notification. Even email systems that have such a feature baked in (like Outlook/Exchange) can be tweaked by knowledgeable users not to send one. Plus, asking for delivery or read notifications has the potential to aggravate users, and may thus not be such a good idea.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10535
    
    9

Ulf Dittmer wrote:Not really. Many email clients by default (or by user choice) do not load images.

Ah! Yes I missed out on that one. Thanks Ulf.
Apreet Singh
Greenhorn

Joined: Oct 10, 2012
Posts: 6
Maneesh Godbole wrote:Moving to a more suitable forum...

Apreet Singh wrote:
One alternate option is to create log entry of email send attempt and have bcc to a designated id. Matching of data can be done to have delivery status. May not be advisable if high load system as this will double the number of emails being sent

Not really. Receipt on the BCC id would not necessarily ensure receipt on the original ID.

One hackish way is to include a 0px image in the body, which is provided by some servlet on your server. The call to the servlet would include the mail ID as a parameter. However, this approach would sort of ensure a read receipt. It might be noted though that the mail can be delivered but not read.


Having bcc may not ensure reciept on original id (case in which id may not exist) , but atleast we can know that at that time our
email server was not down and was actively sending emails.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10535
    
    9

Apreet Singh wrote:
Having bcc may not ensure reciept on original id (case in which id may not exist) , but atleast we can know that at that time our
email server was not down and was actively sending emails.

You don't need BCC for that one. You can always process the MessagingException in Transport@send()
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Email delivery confirmation