Determine Email App

  • Thread starter Thread starter sbowman
  • Start date Start date
S

sbowman

I need a way to determine if my users are using Lotus or Outlook via
VBA code. I'm sending out an email after all processing is done and I
expected that all users were on Lotus, but now I've found out some are
using outlook....BOOOOOOO!!!

Thanks,
Shelley
 
Hi sbowman,
May be:

Sub DefaultMailSoftware()
Const Key As String = "HKLM\Software\Clients\Mail\"
MsgBox CreateObject("WScript.Shell").regread(Key), 64
End Sub

MP
 
sbowman said:
I need a way to determine if my users are using Lotus or Outlook via
VBA code. I'm sending out an email after all processing is done and I
expected that all users were on Lotus, but now I've found out some are
using outlook....BOOOOOOO!!!

Thanks,
Shelley

there is a key in the registry that indicates the default mail program.
i forget which one, but i'm sure some googling will tell you. i don't
know why it would matter tho as long as you can get the email to send
from your machine, the end user should be able to open it with any mail
client. i must be messing something. hope this (kind of) helps

AR
 
Just an added thought.

That certainly tells you the default mail program, but mine is outlook and I
often read some accounts with outlook express. So I guess it depends on what
you want to achieve.
 
Thanks guys for all your help. How would I return the regkey value in a
variable? All I'm trying to accomplish is send an email message, no
attachments, pre determined body text, to a specified address. Should
be easy right? Too bad I have a variable amount of users that use
Lotus, and some that use Outlook!!!

Thanks,
Shelley
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top