aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes JavaMail 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 "JavaMail" Watch "JavaMail" New topic
Author

JavaMail

Brice Kieffer
Greenhorn

Joined: Nov 22, 2012
Posts: 5
Hi all,

I need support to use the JAVAMAIL API to sent and received DSN. I think I have understoud the send email procedure via SMTP; But I have not for retreive the DSN. If I understand the DSN not come to me automatically, I need to retrieve ts by myself with pop3 object. Some body have an example to show me?

Thank you for your help.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41855
    
  63
Some information is in (or linked from) this topic: http://www.coderanch.com/t/434460/java/java/delivery-status-notification


Ping & DNS - my free Android networking tools app
Brice Kieffer
Greenhorn

Joined: Nov 22, 2012
Posts: 5
Thanks i had seen this topic but some link does not work and it does not answer to all question
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41855
    
  63
It's not a subject that gets asked much, because DSNs generally do not work well (or at all) over the mail protocols supported by JavaMail. It's not like it's baked into the protocols and the mail client like it is with Outlook/Exchange.
Brice Kieffer
Greenhorn

Joined: Nov 22, 2012
Posts: 5
Have you any idea on how outlook correlate the e-mail and the delivery acknowledgement?
I made some capture with Wireshark and i don't see any ID or other which can match in two messages first email and delivery acknowledgement message

Thank for your help ;)
Brice Kieffer
Greenhorn

Joined: Nov 22, 2012
Posts: 5
I've just found the transportListener. Is hits listener acknowledge the delivery of the message when the MTA have receive it or when the end user received it ?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

It informs you when your SMTP server handles the message. (I'm not sure what "handles" means there, but hopefully the API documentation explains it. I didn't take the time to check the documentation, under the assumption that you had already found it and were asking for clarification.)

Your SMTP server may not send the message to the recipient immediately; for example it might put the message in a queue to be sent later. In addition it may take some time for your SMTP server to locate the recipient's server; for example that server might be temporarily down, in which case your server will try again later.

Remember to think of e-mail as being like the post office and not like the telephone system.
Brice Kieffer
Greenhorn

Joined: Nov 22, 2012
Posts: 5
many thanks for your help. It's really a pleasure to post on this forum...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaMail