Programming outlook/outlook express from code

  • Thread starter Thread starter =?ISO-8859-1?Q?Cl=E9ment_Doss?=
  • Start date Start date
?

=?ISO-8859-1?Q?Cl=E9ment_Doss?=

Hello,

Can someone check if the following feature table is correct.
I should build a project with the following features, but as you can see not all of
them are possible. So I must double check before saying to my customer "it can't be
done". Please do complete the information if you feel the one I gave is incomplete.

The idea is to "connect" , in anyway, to outlook and outlook express, from a language to:
(Please correct if I'm wrong)

- Create an account (mail -> IMAP or POP3):
- Directly : Not possible
- Workaround : The account info is stored in the registry, and can be
created/modified from a language. Can be done in Outlook and Outlook express. The
registry key is diferent, but the account data seems to be the same.
Is this valid for all versions of outlook and outlook express? if not then from which
one?

- Create Rules
- Directly : Not possible.
- Workaround: None. There's a DLL (rule.dll) that can help us, but it's intended
to be used with MicrosoftExchange as a Server Side rule.
* Does outlook prior to 2000 support rules?
* Outlook 2000 stores the rules in a profile folder (Microsoft Outlook Internet
Settings.RWZ). No way to interact with it.
* Outlook XP stores it in the PST file. No way to interact with it.

- View->CurrentView (for POP or IMAP)
- Directly : Only for Outlook XP and newer.
- Workaround : None.
- Storage
* Couldn't find out



Best regards,
Clément
 
Accounts -- you can use Redemption or Extended MAPI if profiles are
involved.

Rules -- Outlook has supported rules since Outlook 97. Rule.dll will help
you only if you are created very simple rules, can ensure that CDO is
installed on the client, and don't care that a rule created with Rule.dll
will not appear in the Rules Wizard.

Views -- stored as hidden items in folders or root of mailbox

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Sue said:
Accounts -- you can use Redemption or Extended MAPI if profiles are
involved.

Rules -- Outlook has supported rules since Outlook 97. Rule.dll will help
you only if you are created very simple rules, can ensure that CDO is
installed on the client, and don't care that a rule created with Rule.dll
will not appear in the Rules Wizard.

Views -- stored as hidden items in folders or root of mailbox
Could you please give me an example of how can I create an outlook / outlook express
account from a language (like Delphi or C++)

The rule I need to create is a very simple one. Just move all incoming mails from
inbox to a specific folder. Could you please provide a sample code?

Views -- How can I interact? Any sample code please :-)


Best regards,
Clément
 
Check MSDN for samples using Extended MAPI -- see
http://www.slipstick.com/dev/mapi.htm for links. This is Outlook only.
Outlook Express is a completely different program.

For views, see
http://www.outlookcode.com/threads.aspx?forumid=4&messageid=19

For Rule.dll, again MSDN and also see
http://www.slipstick.com/dev/exstech.htm

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Also note that IMAIL service (SMTP/POP3) is not entirely MAPI compliant and
cannot be added/configured with Extended MAPI.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Thanks for your help,

I looked the links you sent me... They will help me a lot thanks...
But it's really too much information to digest before giving my customer an answer.

I would like to know if it's possible :
1) to create a email account in Outlook / Outlook express, other than editing the
registry. My answer to him will be "only by editing the registry"

2) Create a simple rule (Move any incoming email to a specific folder). In Outlook
/ Outlook Express. My answer to him will be that it's not possible, in any version of
Outlook / Outlook Express.

3) Change the CurrentView Setting (This one is only available for Office XP and
newer). My answer to him will be that it's possible to setup up only for Office XP
and newer... Not possible for Outlook Express...

That's why I must know if those are possible tasks. I want to avoid to tell him that
something is possible and it isn't or that something isn't possible and it is...

Best regards,
Clément
 
Back
Top