Solved

How do I get the default email address of the current user?

Posted on 2009-05-15
4
597 Views
Last Modified: 2012-05-07
How do I get the default email address of the current user?  The user will be using Outlook 2003.
0
Comment
Question by:NevSoFly
  • 2
  • 2
4 Comments
 
LVL 16

Expert Comment

by:ToddBeaulieu
ID: 24397134
Maybe this will help? I figured it would be more straightforward!

http://vbnet.mvps.org/index.html?code/reg/regdefemail.htm
0
 

Author Comment

by:NevSoFly
ID: 24398053
Thanks for your reply.  There seems to be a problem in the TrimNull function.  StrPtr is not declared anywhere in the code.  But TrimNull is call in the GetRegValue function.
0
 
LVL 16

Accepted Solution

by:
ToddBeaulieu earned 500 total points
ID: 24398127
I'm not getting a good feeling about this solution, at all. Looking into StrPtr, it's a VB6 function.

I did go into my registry to the mentioned registry entry and sure enough, found my "smtp" email address. If this is what you are looking for, just ignore all this VB6 crap about reading the registry and use the .net registry framework.
0
 

Author Closing Comment

by:NevSoFly
ID: 31581955
that seems to have done it.  Thanks.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

828 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