Solved

Create Outlook 2003 Account programmatically

Posted on 2004-10-17
3
1,764 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
nonubik earned 500 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
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…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

730 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