Solved

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

Posted on 2009-05-15
4
611 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
[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
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

729 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