Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Create Outlook 2003 Account programmatically

Posted on 2004-10-17
3
Medium Priority
?
1,789 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 2000 total points
ID: 12337395
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
ID: 12344423
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
ID: 12345022
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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
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 course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…

971 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