Get e-mail client name from code

B

Bill

Is there some kind of VBA interface whereby I can
obtain the name of the current e-mail client? E.g.,
"Outlook", "Outlook Express", etc.

Thanks,
Bill
 
B

Bill

John,
I'm not at all familiar with WMI. I followed the link you suggested
but don't know enough about WMI to begin searching for how to
use WMI to return the name of the current user's default e-mail
client. Can you get me started?
Thanks,
Bill
 
A

Albert D.Kallal

I don't know how to get the email client. however, you can put a bottom
beside a field in a form, and launch the current email client with the email
address FILLED IN by using:

application.FollowHyperlink "mailto:" & me!MyEmailFieldName &
"?subject=Overdue invoice"

Note how the above also sets the subject. This will work regardless of what
email client is being used...
 
J

John Nurick

I don't count myself as familiar with WMI either, just know that it
exists and have used it once or twice. If there's nothing useful to find
by googling, I'd ask in a Windows XP forum.



John,
I'm not at all familiar with WMI. I followed the link you suggested
but don't know enough about WMI to begin searching for how to
use WMI to return the name of the current user's default e-mail
client. Can you get me started?
Thanks,
Bill
 
B

Bill

Albert,
Can I add an attachment specification and a text messge
to what you offered?

For example:

Application.FollowHyperlink "mailto:" & me!MyEmailFieldName &
"?Subject=my subject" & "Attachment=filename" &
"Message=Here's the file you asked for"

Thanks,
Bill
Graeagle, CA USA
 
B

Bill

I found in a couple of sites wherein one can add the body
text to the e-mail (e.g., "&Body=" & myMsg), but I can't
find anywhere the header keywords for attachments. It's
not clear that it is even supported.

Anyone know about extended use of the "Mailto"?

Thanks,
Bill
 
B

Bill

Thanks Albert. I've used Kyle's code before, but I got
the impression via other avenues that "Mailto:" might offer
the same functionality.

And yes, there's good information at the site you sent me.

Bill
 
Top