Hello.
I want to use vbSendMail.dll to send emails, but the mail server requires the Windows Username and Password.
I could have two text boxes in the settings panel in my program, but I really want to avoid that and retrieve them usinf VB.
(That's because they have to change from time to time, so I'll have to change them in the program settings as well).

I can retrieve the Username like this:
MsgBox Environ("username")
but what about the password?

Also, does the Environ work with all versions of Windows or only 2000 and NT?

Thanks.