Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

CDO and MAPI

Posted on 2002-04-16
10
Medium Priority
?
415 Views
Last Modified: 2010-05-02
Couple of easy questions for anyone who has ever used cdo before.

I want offer the ability for the user to email information relevent and generated by my app from within my application.  No UI is necessary except for an email button of course.

I was directed towards MAPI which I automatically saw as a big list of standard DLLs that I would prefer not to touch if I can avoid it.

1) Can CDO do everything I want?
2) Will CDO work on any mail client and operating system that MAPI will work on?
3) I have 3 references to CDO one is "Microsoft CDO 1.21 Library" then there is one for NT and another for Win 2000.  I am running win 2000 but I want this to work on any machine.  For now I have chosen the first one.  Is this correct?
0
Comment
Question by:Lisp
[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
  • 7
  • 3
10 Comments
 

Author Comment

by:Lisp
ID: 6946295
Looks like I can only use CDO for Outlook.  I need something that will work with outlook express and any other mail client the user may have.
0
 

Author Comment

by:Lisp
ID: 6946379
I tried using the MAPI API calls and got exactly the same error message.  It says:

"Either there is no default mail client or the default mail client cannot fulfill the messaging request.  Please run microsoft outlook and set it as the default mail client."

Any ideas?
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 6946457
when I need mailing features in an app, I use vbSendMail since a long time now: http://www.freevbcode.com/ShowCode.Asp?ID=109
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Lisp
ID: 6946496
My company frowns on us using 3rd party components.  I have been instructed to use MAPI but I can't get past this error message.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 6946506
even if this 3rd party is free and you have all the source code?
0
 

Author Comment

by:Lisp
ID: 6946511
This question is changing course.

Why do I get this message:

"Either there is no default mail client or the default mail client cannot fulfill the messaging request.
 Please run microsoft outlook and set it as the default mail client."


When I attempt to log on using cdo and MAPI.

Code used to log on in CDO is this:
    Dim m As New MAPI.session
    m.LogOn
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 1200 total points
ID: 6946534
Like I already said, I always use vbSendMail and I have no experiments with CDO.

using the MAPI will require you to get Windows messaging/Outlook properly configured. I don't like this requirement because many of my users have Notes and Eudaora as their e-mail reader.
0
 

Author Comment

by:Lisp
ID: 6946538
So MAPI doesn't work with Eudora or Notes?
0
 

Author Comment

by:Lisp
ID: 6946557
I would rather configure the client's outlook/express (for the few clients who have notes or eudora) for emailing than have to find out what each client's smtp server address is.  Most of the time we are installing to the machine of a person who knows nothing about such things and its a huge pain to find the tech staff member who knows what s/he is talking about.

I still think MAPI is the best option.  Even if it were not, I have to write this thing the way I was asked to.
0
 

Author Comment

by:Lisp
ID: 6946707
You answered my question perfectly even though it wasn't really the answer I was looking for.  I can't really hold the fact that my question was badly researched against you so the points are yours.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses

670 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