![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
You're only showing your OnConnection code, how are you instantiating the
mail item and how are you trying to read it? -- 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 ... Thank you Ken. Your reply has almost gave me the answer. However, I am still not confident on what you've said about disabling security prompts with objects. I am currrently using the shared-add-ins template project, provided by Microsoft Visual Studio 2005 that generates line of code to connects with the Outlook: [GuidAttribute("DE8C31FA-3401-4EB5-955A-F74390256D3E"), ProgId("MyAddin1.Connect")] public class Connect : Object, Extensibility.IDTExtensibility2 { /// summary public void OnConnection(object application, Extensibility.ext_ConnectMode connectMode, object addInInst, ref System.Array custom) { applicationObject = application; addInInstance = addInInst; } --- but if I would install this add-in and try to read mail item , it is giving me security prompt. I think your point is not triggering on what you are trying to refer Please advise with some sample (if possible). Thank you once again. Am |
#2
|
|||
|
|||
![]()
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? "Ken Slovak - [MVP - Outlook]" wrote: You're only showing your OnConnection code, how are you instantiating the mail item and how are you trying to read it? -- 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 ... Thank you Ken. Your reply has almost gave me the answer. However, I am still not confident on what you've said about disabling security prompts with objects. I am currrently using the shared-add-ins template project, provided by Microsoft Visual Studio 2005 that generates line of code to connects with the Outlook: [GuidAttribute("DE8C31FA-3401-4EB5-955A-F74390256D3E"), ProgId("MyAddin1.Connect")] public class Connect : Object, Extensibility.IDTExtensibility2 { /// summary public void OnConnection(object application, Extensibility.ext_ConnectMode connectMode, object addInInst, ref System.Array custom) { applicationObject = application; addInInstance = addInInst; } --- but if I would install this add-in and try to read mail item , it is giving me security prompt. I think your point is not triggering on what you are trying to refer Please advise with some sample (if possible). Thank you once again. Am |
#3
|
|||
|
|||
![]()
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? |
#4
|
|||
|
|||
![]()
Yes you are right.
Actually I'd asked you to provide me the way to create a component such that there would not be any security alert. You have already given an answer on how to get INternet Header. BTW, do you suggest any good book for Outlook 2007? "Ken Slovak - [MVP - Outlook]" wrote: 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? |
#5
|
|||
|
|||
![]()
For programming Outlook 2007? Well, I'd be remiss if I didn't recommend my
own book ![]() In addition to that there's a more beginner level book by Sue Mosher, it's referenced on her www.outlookcode.com Web site, and a book by Randy Byrne and Ryan Gregg of the Outlook team called Building Applications with Outlook 2007 from MS Press. -- 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 ... Yes you are right. Actually I'd asked you to provide me the way to create a component such that there would not be any security alert. You have already given an answer on how to get INternet Header. BTW, do you suggest any good book for Outlook 2007? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to setup Outlook 2007 or 2003 to sync with Exchange 2003 | Chik | Outlook - General Queries | 5 | June 4th 07 01:03 PM |
Outlook 2003/2007 on Vista with Exchange 2003 / X86 | JackFlash | Outlook - Installation | 2 | February 14th 07 07:40 AM |
ClearQuest 2003 and Outlook 2007 with Exchange Server 2003 | [email protected] | Outlook - General Queries | 2 | December 26th 06 05:05 AM |
Exchange 2003/Outlook 2003/Outlook 2007 combination creates duplicate folders | [email protected] | Outlook - General Queries | 3 | December 5th 06 04:32 PM |
Outlook 2007 upgrade from 2003, using MS Exchange Server 2003 | Mihai | Outlook - Installation | 0 | November 22nd 06 09:32 PM |