Find original email
I'm developing an application that sends an email out through exchange server
using SMTP mail (Winsock). I do NOT use CDO, MAPI, WebDAV, etc... The
mail goes out fine and there is no record of the mail going out through
Exchange since it is not placed into any "Sent" folder or anything.
Herein lies my problem. If the message sent is returned as undeliverable, I
would like to go back and find the original message!
If I use WebDAV to send this message, instead of SMTP mail, can I store it
to the Sent folder? Then later on if it was undeliverable, can I check some
namespace property of the undeliverable message to obtain the original email
and then go open it?
Currently I'm creating a unique GUID and appending it to the email subject
before I send it. I also save the email out to a file with the GUID as the
filename. Now if the message is returned as undeliverable, I can see the
original subject. I strip out the GUID and I can go find the file (the
orignal email). I don't really like this method since it "adds" uneccessary
data to the subject and is ONLY used for my reference. Is there a better way
of doing this? (possibly using WebDAV)
Thank you very much,
Frank
date: Wed, 29 Jun 2005 21:08:02 -0700
author: Frank