Solved

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

Posted on 2002-04-05
2
184 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
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
List out all word 7 223
How to determine file rename from EventLog ? 2 36
centeredAverage challenge 8 121
sumHeights  challenge 17 60
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
This video discusses moving either the default database or any database to a new volume.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now