Hi All,
I am using windows mobile 5.0.[both pocket pc as well as smart phone version]
I am facing a problem in catching email sent event.I have an application which is runing as a service application.
There is both managed[C#] as well as unmanaged[c++] modules are in there.
I have to do some insertion in db on email sent and recieved event.I have catch the email recieved event via a manged code and done my process.
But I have search a lot but can't find any help on how can I catch the email sent from the device by any mean that is managed or unmanaged[some body advices me about IMAPISession.Advise method in my other post http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=780469&SiteID=1] I search a lot But can't find any thing about it that I can use.
Please could any bosy help me in this

how to catch email sent event from the device[via managed or unmanaged code]
cooldoger
Thanks mgaur.
I have used exactly like the link http://msdn.microsoft.com/library/default.asp url=/library/en-us/devguidesp/html/sp_howhowtoestablishpoomsession.asp
But can't find any help that how can I make such a rule to catch the email sent event
Also I don't ned to intercept sms messages as I only need to catch the email send event.In which I want's to check the email address and do some db insertion
Also If any body have done a such thing then please guide me or provide any sample code of catching email sent event from the device
Thanks.
dmouser
You might want to create a custom MAPI rule to intercept the message sent. See this http://msdn.microsoft.com/library/default.asp url=/library/en-us/devguidesp/html/sp_howhowtoestablishpoomsession.asp
or use this API to intercept SMS messages only http://msdn.microsoft.com/library/default.asp url=/library/en-us/mobilesdk5/html/N_Microsoft_WindowsMobile_PocketOutlook_MessageInterception.asp
Manav