Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2009-05-15
4
Medium Priority
?
636 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

618 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