PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Program Addins
## Get to Internet mail header via add-in ?
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Program Addins
## Get to Internet mail header via add-in ?
![]() |
## Get to Internet mail header via add-in ? |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
I want to make an add-in that can get to the internet mail headers of
selected messages. How is this accomplished? Someone referred me to a site that uses CDO: http://www.slipstick.com/dev/olforms/headers.htm I could not get sample code to work because it did not know the data MAPI datatypes. the MAPI dll's (mapi.dll /mapi32.dll or something) is installed, but CDO is not. I could not figure out what CDO is, where I can get the components to install, weather it is freely redistributable, or that is is the only way to get to the internet headers. I prefer not having to rely on anything other than a default Outlook (office xp) installation. But if there's no way around CDO, then can someone answer my questions above regarding CDO? Lisa |
|
|
|
#2 |
|
Guest
Posts: n/a
|
CDO 1.21 is an optional installation for Outlook 2000 and later. It
can be installed from the Office CD and is legally not redistributable. It will also fire the security prompts when used with secure versions of Outlook when you get the headers since they can be used to harvest email addresses. Without CDO installed none of the CDO code or property tags would run or be recognized. There are 2 alternatives to using CDO to get the headers, Extended MAPI (C++ or Delphi only, no VB/VBA/VBScript) or Redemption (www.dimastr.com/redemption). Neither of those will trigger the security prompts. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Lead Author, Professional Outlook 2000 Programming, Wrox Press Lead Author, Beginning VB 6 Application Development, Wrox Press Attachment Options http://www.slovaktech.com/attachmentoptions.htm Extended Reminders http://www.slovaktech.com/extendedreminders.htm "Lisa Pearlson" <no@spam.pls> wrote in message news:#55Lt9EQDHA.1072@TK2MSFTNGP10.phx.gbl... > I want to make an add-in that can get to the internet mail headers of > selected messages. > How is this accomplished? > > Someone referred me to a site that uses CDO: > http://www.slipstick.com/dev/olforms/headers.htm > > I could not get sample code to work because it did not know the data MAPI > datatypes. the MAPI dll's (mapi.dll /mapi32.dll or something) is installed, > but CDO is not. > I could not figure out what CDO is, where I can get the components to > install, weather it is freely redistributable, or that is is the only way to > get to the internet headers. > > I prefer not having to rely on anything other than a default Outlook (office > xp) installation. > But if there's no way around CDO, then can someone answer my questions above > regarding CDO? > > Lisa > > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Where can I get more information about extended MAPI vor C++. ?
I prefer C++ over VBA anyway, but when it comes to COM things, like with office automation, it usually gives me a headache (I haven't been convinced there are no better models imaginable that are easier and better to use from user but especially programmer's perspective... but that's a different issue;-)). Is there by any chance Visual C++ sample code floating around that can LOAD and UNLOAD an addin, preferably one that uses extended MAPI? I once used sample code to compile an add-in, and it would load, and create a menu item, but I could not get rid of it anymore! It failed to unload, I deleted the .dll and still the menu item and add-in remained there. No clue hot to get rid of it anymore. When in VBA, you create a new Add-in project, it creates the load and unload code automatically. Wish I had a C++ skeleton code like that. Lisa "Ken Slovak - [MVP - Outlook]" <kenslovak@mvps.org> wrote in message news:eib%23nQKQDHA.3016@TK2MSFTNGP10.phx.gbl... > CDO 1.21 is an optional installation for Outlook 2000 and later. It > can be installed from the Office CD and is legally not > redistributable. It will also fire the security prompts when used with > secure versions of Outlook when you get the headers since they can be > used to harvest email addresses. Without CDO installed none of the CDO > code or property tags would run or be recognized. > > There are 2 alternatives to using CDO to get the headers, Extended > MAPI (C++ or Delphi only, no VB/VBA/VBScript) or Redemption > (www.dimastr.com/redemption). Neither of those will trigger the > security prompts. > > -- > Ken Slovak > [MVP - Outlook] > http://www.slovaktech.com > Lead Author, Professional Outlook 2000 Programming, Wrox Press > Lead Author, Beginning VB 6 Application Development, Wrox Press > Attachment Options > http://www.slovaktech.com/attachmentoptions.htm > Extended Reminders > http://www.slovaktech.com/extendedreminders.htm > > "Lisa Pearlson" <no@spam.pls> wrote in message > news:#55Lt9EQDHA.1072@TK2MSFTNGP10.phx.gbl... > > I want to make an add-in that can get to the internet mail headers > of > > selected messages. > > How is this accomplished? > > > > Someone referred me to a site that uses CDO: > > http://www.slipstick.com/dev/olforms/headers.htm > > > > I could not get sample code to work because it did not know the data > MAPI > > datatypes. the MAPI dll's (mapi.dll /mapi32.dll or something) is > installed, > > but CDO is not. > > I could not figure out what CDO is, where I can get the components > to > > install, weather it is freely redistributable, or that is is the > only way to > > get to the internet headers. > > > > I prefer not having to rely on anything other than a default Outlook > (office > > xp) installation. > > But if there's no way around CDO, then can someone answer my > questions above > > regarding CDO? > > > > Lisa > > > > > > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
Always declare any toolbars or whatever you add as Temporary = True so
they are removed when Outlook exits. I also delete them when Outlook exits as a failsafe. To remove any unwanted items from toolbars just open Outlook and use Alt+Click and drag the items from the toolbar. To remove a toolbar delete Outcmd.dat which holds your menu/toolbar customizations. COM addins are registered in either HKCU or HKLM, under \Software\Microsoft\Office\Outlook\Addins. If you delete the registration information about your old addin from those hives you shouldn't see the addin any more. For some info on Outlook/MAPI/C++ look through the collection of KB articles maintained by Randy Byrne of Microeye at http://www.microeye.com/resources/outlkb.htm There are MAPI and C++ articles there. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Lead Author, Professional Outlook 2000 Programming, Wrox Press Lead Author, Beginning VB 6 Application Development, Wrox Press Attachment Options http://www.slovaktech.com/attachmentoptions.htm Extended Reminders http://www.slovaktech.com/extendedreminders.htm "Lisa Pearlson" <no@spam.pls> wrote in message news:ebh$ukLQDHA.704@tk2msftngp13.phx.gbl... > Where can I get more information about extended MAPI vor C++. ? > I prefer C++ over VBA anyway, but when it comes to COM things, like with > office automation, it usually gives me a headache (I haven't been convinced > there are no better models imaginable that are easier and better to use from > user but especially programmer's perspective... but that's a different > issue;-)). > > Is there by any chance Visual C++ sample code floating around that can LOAD > and UNLOAD an addin, preferably one that uses extended MAPI? > > I once used sample code to compile an add-in, and it would load, and create > a menu item, but I could not get rid of it anymore! It failed to unload, I > deleted the .dll and still the menu item and add-in remained there. No clue > hot to get rid of it anymore. > > When in VBA, you create a new Add-in project, it creates the load and unload > code automatically. > Wish I had a C++ skeleton code like that. > > Lisa |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

