Solved

MAPI - can my app discover who's out there handling the mail?

Posted on 2002-04-05
2
189 Views
Last Modified: 2013-11-20
I have a MFC app where the MAPI works great except with Lotus Notes. Is there a way with MAPI (or anything in MFC)to discover what the default mail client is?  Then I if know it's Lotus, I could disable the email option inside my app.

0
Comment
Question by:gkibble
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 49

Accepted Solution

by:
DanRollins earned 100 total points
ID: 6922118
You could check the values in this key:

   HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail
or
    HKEY_LOCAL_MACHINE\Software\classes\mailto\shell\open\command

In the sytem Registry.  Do you need help in how to access registry settings?

For 'problem' clients (Lotus is a problem) you could try:

   ShellExecute(NULL, "open", "mailto://MrPibs@aol.com",
 NULL, NULL, SW_SHOWNORMAL);

as a way to bring up the default client (but that would not place the data into the email), but if you are just passing a short note, you can try:

mailto:person@place.com?subject=This%20is%20it&body=ThisIsSomeBodyText

-- Dan
0
 

Author Comment

by:gkibble
ID: 6925351
Thanks Dan,
looking at the registry will solve my problem
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Expand macro to ask for filename column 8 37
WinWaitActive parameters 12 31
dog bark java program 15 120
fizzArray2 challenge 1 101
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question