Can you guide me if there is any way in which i can get the report (containing status) of all the mails sent in a period of time. i.e. for example: say in last 1 hour. If there is pointer to code available for it, then it would be great!!
Such reports are not part of the SMTP specification. It's possible you might be able to get such a report from your server, but you wouldn't use JavaMail to do that. Or you could insert your own code to keep track of when you sent the messages. Again that's nothing to do with JavaMail, just some regular database code that you would write.
And what do you mean by "status"? [ January 28, 2008: Message edited by: Paul Clapham ]
Joined: Dec 15, 2005
Thanks! for your quick response.
By 'Status', I mean is there a way by which I can track whether my mails have been sent successfully or not in a specified period of time, say 1 hr.
I can recieve the response from server using "SMTPTransport.getLastServerResponse()", but this would be giving me the response per mail. My requirement is to get a consolidated report from server of all the mails being sent.