Solved

Create Outlook 2003 Account programmatically

Posted on 2004-10-17
3
1,743 Views
Last Modified: 2013-12-03
Hello,

For a project i am working on, I need to be able to set up an Outlook 2003 email account programatically. This is not for an Exchange Server account, just a simple POP3 email account. Preferably setting the password aswell, but if this is not possible, simply the account without password would be sufficient.

I need a solution compatible with WIN32 C/C++. For an Outlook Express account, you can simply create registry settings to achieve this, and similar for Outlook 2000, but I have had no success for Outlook 2003.

If anyone could provide information/solution to this problem, I would be most greatful.


Cheers,
H.
0
Comment
Question by:habadacus
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
nonubik earned 500 total points
Comment Utility
The regkeys about an Outlook profile are under
HKCU\\software\\microsoft\\windows nt\\currentversion\\windows messaging subsystem\\profiles
There are bunch of keys there.

What you need to modify:
[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook2\9375CFF0413111d3B88A00104B2A6676]
 - there is a value {ED475418-B0D6-11D2-8C3B-00104B2A6676}, REG_BINARY. Here you have to add a new account id, an int as binary (4 bytes). You can choose the greatest account id existent + 1. The {ED475418-B0D6-11D2-8C3B-00104B2A6676} value holds a list of account ids as integers.

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook2\9375CFF0413111d3B88A00104B2A6676]
 - create a key having your new account id, padded with zeros (i.e. your account id is 5, you need to create a key "00000005").
 - under it you have to create some values:
"clsid"="{ED475411-B0D6-11D2-8C3B-00104B2A6676}" //POP3 clsid
"Mini UID"=dword:7665f469  //?? don't know exactly what is
"Account Name"=hex:7a,00,7a,00,7a,00,2e,00,67,00,69,00,67,00,69,00,38,00,2e,00, 63,00,6f,00,6d,00,00,00  //this should be the account name in UNICODE (e.g. zzz@gigi8.com)
"Display Name"=hex:7a,00,7a,00,7a,00,7a,00,00,00 //this should be the display name in UNICODE (e.g. 'zzzz')
"Email"=hex:7a,00,7a,00,7a,00,40,00,67,00,69,00,67,00,69,00,2e,00,63,00,6f,00, 6d,00,00,00 //idem, UNICODE (e.g. 'zzz@gigi.com')
"POP3 Server"=hex:7a,00,7a,00,7a,00,2e,00,67,00,69,00,67,00,69,00,38,00,2e,00, 63,00,6f,00,6d,00,00,00 //pop3 server address, UNICODE (e.g. zzz@gigi8.com)
"SMTP Server"=hex:7a,00,7a,00,7a,00,2e,00,67,00,69,00,67,00,69,00,38,00,2e,00, 63,00,6f,00,6d,00,00,00//smtp server address, UNICODE (e.g. zzz@gigi8.com)
"POP3 User"=hex:7a,00,7a,00,7a,00,00,00
0
 
LVL 1

Author Comment

by:habadacus
Comment Utility
Thankyou very much, your help is appreciated.

I have accepted your answer, but as an aside, do you or anyone know how to write the password here? I am familiar with the Protected Storage Model used by Outlook Express, but a heads up on the password system here would be appreciated. If someone wants points for this additional question, im more than willing to post this as a new Q.

Cheers again,

H.
0
 
LVL 16

Expert Comment

by:nonubik
Comment Utility
The only thing I know right now is that it's written under the "POP3 Password" value and it's binary, encrypted. I'll dig more for you...
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now