View Single Post
  #6  
Old October 11th 07, 02:10 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook 2003 or 2007 ? which one?

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?


Ads