Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get current user's e-mail address

Status
Not open for further replies.

Griffyn

Programmer
Jul 11, 2002
1,077
AU
Hi all,

I'm writing an application that will send a requested document via e-mail to the current user (it will appear in their own inbox). This is to make it easier for them rather than finding the document source and attaching it.

Rather than force the user to tell the program what their own e-mail address is, it occured to me that this information is already in their system somewhere - seeing as they have an e-mail program with their details plugged in.

How can I reliably retrieve this?

Or - alteratively, and possibly better would be to communicate directly with their e-mail program to create a new e-mail in their inbox with the requested document as an attachment.

Help on either would be great!

Thanks.
 
Check out the FAQ I wrote a while back for sending email using Delphi: faq102-3600. It includes the link Nordlund has provided plus alternatives.

Clive
Runner_1Revised.gif

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
I have 12 e-mail addresses in my Outlook Express, what would you select? (obviously _not_ the default :) )
Your first thought of having the user select/edit a preferred e-mail address is IMHO the only way to go.

HTH
TonHu
 
Thanks everyone - I appreciate all your suggestions. I've had another look at IMAP (we have an NT4 domain with an Exchange 5.5 server), and CDO but still couldn't see how they would help me out without requesting anything from the user. So, I'm going with TonHu and my fallback by forcing the user to enter their e-mail address.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top