Retrieve my E-Mail Address in VBA

  • Thread starter Thread starter Scorcel
  • Start date Start date
S

Scorcel

Anybody please help me how to retrieve my e-mail address
using Visual Basic Code or VB?

Thank you very much.
 
Thanks a lot for your help, but it only shows my Complete
Name and not my complete e-mail address (like
(e-mail address removed))

Again thanks a lot!
 
Ok, that should work with CDO 1.21.

("Should" because I´m a little confused at present: My own CurrentUser
tells me, I´m unknown?!)

--
Viele Grüße
Michael Bauer


Thanks a lot for your help, but it only shows my Complete
Name and not my complete e-mail address (like
(e-mail address removed))

Again thanks a lot!
 
It's somewhat dependent on the Outlook version, as well as the profile
accounts. Most recent versions don't report a CurrentUser address, unless
it's an Exchange profile.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
OK, Again thanks so much.
-----Original Message-----
Ok, that should work with CDO 1.21.

("Should" because I´m a little confused at present: My own CurrentUser
tells me, I´m unknown?!)

--
Viele Grüße
Michael Bauer


Thanks a lot for your help, but it only shows my Complete
Name and not my complete e-mail address (like
(e-mail address removed))

Again thanks a lot!


.
 
Hi Sue,

thanks. I´m still working with OL2k without Exchange. Via the Outlook
object model there is a CurrentUser address, via CDO it isn´t.
 
But my Outlook is in the Mail Exchange and I could not see
my email address using the code you gave. Thanks again.
 
Did you try it via CDO?


--
Viele Grüße
Michael Bauer


But my Outlook is in the Mail Exchange and I could not see
my email address using the code you gave. Thanks again.
 
OK so which is it?

All I want to do is compare the to e-mail address with my own one, if we can
do this in CDO, has anyone got a few sample code lines?
 
Outlook version and mail server(s)?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Running Outlook 2003, with exchange 2003, I have now started to look and see
if redemption can help me at all. It appears there is a parameter in RAW mapi
PR_SMTP_ADDRESS, I suspect this is the parameter I am after, I now have
redemption installed, where do I find values for all the hex codes used?
 
Back
Top