Hi,
I am trying to get a Delivery Status Notification message to be snt to a different e-mail address than the one of the sender.
Do you have any idea how I can do this? I had a quick look at rfc 1891 and 1894 but I couldn't really succeed.
First of all, please note that I am speaking from the client prospective. I have a program which sends emails through an smtp server.
From this program, people are able to send e-mails in an their organisation. When an e-mail is sent, the business logic requires that the sender to appear as the person who sent it.
There is also a need of tracking e-mails (if has been delivered to the recipient or not). For this purpose, I have a functional mailbox in place where I would like my delivery receipts to be sent all the time regardless who the sender is. In order to have the dsn generated, I am setting the following property in the javaMail's properties:
properties.put("mail.smtp.dsn.notify", "SUCCESS");
Then I have a job running from time to time which reads the e-mails (delivery receipts) from my functional mail box and updates some tracking tables in the DB.
If I put the sender as being my functional mailBox, everything works fine. However, now the requirement changed and the sender must be the person who actually sent the email. in order to still be able to track e-mails, my DSN will have to be sent to the other functional mailBox.
Do you know how I can do this? Having the dsn sent to a diferent mailbox than the one of the sender?
Thank you