The Internet headers don't exist on the item until after it is received. A
sent item never has PR_TRANSPORT_MESSAGE_HEADERS (the Internet headers),
even after it's sent out.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Amit" wrote in message
...
function onConnection( object application ... )
{
Outlook.Application _outlookApplication = (Outlook.Application)
application;
_outlookApplication.ItemSend += ... (ProcessBeforeSend);
}
public void ProcessBeforeSend(object Item ... )
{
Outlook.MailItem mail = (Outloook.MailItem) Item;
// here is the code to read mail header ,and the body and then call web
service that save mail, with attachments into the database.
}
Is that what you are looking for?