Solved

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

Posted on 2009-05-15
4
588 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
that seems to have done it.  Thanks.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 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

10 Experts available now in Live!

Get 1:1 Help Now