Is there a way to check if an email profile exist?

P

Peter

Hi,

When my program starts up, it uses MAPILogonEx to connect to the
default email profile (set by user).

The problem is, if the email profile no longer exist, it would give an
error "The profile name is not valid. Enter a valid profile name",
after pressing ok, the email profile wizard will come up. We don't
want the error message to come up, instead we want to somehow check if
the default email profile exist, if it doesn't exist, set the flag
MAPI_LOGON_UI (or something like that) and call MAPILogonEx so that i
will prompt the user to set up a profile.

So I was wondering if any of you guys know if there is a way I can
check if a email profile exist or not?

P.S. I was told that I can look up the email profile information in
the registry, is that true?

Thanks, any help would be greatly appreaciated

Peter
 
R

Richard Herring

Peter said:
Hi,

When my program starts up, it uses MAPILogonEx to connect to the
default email profile (set by user).

The problem is, if the email profile no longer exist, it would give an
error

I'm sorry to hear it. What's your question about C++ ?
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top