|
-
May 16th, 2010, 12:55 AM
#1
[RESOLVED] ExchangeMapiCdo - How do I use it?
Hi,
While searching the net for a way of making my VB6.0 - Office Outlook mail retrieval program more user friendly I came across the standalone MAPI package released by Microsoft. I was wondering could I use this in my program in stead of the current mapi controls which need access to Outlook. If so, have do I use it?
I am also thinking that if I recreate the program in C# that I might be able to accomplish this rather than using vb6.0?
Thanks,
Nightwalker
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
May 16th, 2010, 01:09 AM
#2
Re: ExchangeMapiCdo - How do I use it?
If you have Outlook installed in "corporate" mode I believe it replaces CDO for Windows by CDO for Exchange. I think this allows some access to the Exchange mailbox without automating Outlook via MAPI. You can also use WebDAV to access the Exchange store.
MAPI is meant as a generic mail client automation API, so it'll involve Outlook no matter what.
What kinds of things are you trying to do? And why not via Outlook? That would give you access to .PST files and such too. You can automate Outlook via its exposed object model or create a VBA or VBScript macro to do most things instead of through MAPI.
-
May 16th, 2010, 01:30 AM
#3
Re: ExchangeMapiCdo - How do I use it?
Well in the program I created back in 2005 (linked above) I also added mail sending capabilities and I was wonder if I could then make my program standalone without having it to rely on outlook or the user having to open Outlook first (which, would make my program pointless because everything then could just be done in Outlook).
I also was wonder whether I could achieve this without having to rewrite my program (not using cdo, etc)? I tried Redemption, etc but they seem too confusing.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
May 20th, 2010, 07:01 AM
#4
Re: ExchangeMapiCdo - How do I use it?
Moved To General Developer per OP Request
-
May 20th, 2010, 07:02 AM
#5
Re: ExchangeMapiCdo - How do I use it?
Well, while I haven't find out how to achieve what I want to do using redemption, etc if I uninstall Outlook and install Windows Live Mail my program reacts differently. For one I can send email directly without having to going through the outbox or without having to open Windows Live Mail beforehand.
Read more here
I wonder what Microsoft did differently in Windows Live Mail compared to Outlook in regard to MAPI? I do know that WLM has the "Warn me when other applications try to send mail as me" option. However, that appears to be the only thing that is different MAPI wise.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
May 23rd, 2010, 03:45 AM
#6
Hyperactive Member
Re: ExchangeMapiCdo - How do I use it?
NightWalker83
from a search i just made in MSDN and more sites, it seems that CDO uses MAPI for receiving mails.
for sending, it doesn't need it.
-
May 23rd, 2010, 06:05 AM
#7
Re: ExchangeMapiCdo - How do I use it?
 Originally Posted by whatsup
NightWalker83
from a search i just made in MSDN and more sites, it seems that CDO uses MAPI for receiving mails.
for sending, it doesn't need it.
Ah ok! I wonder if it acts different in Outlook/Express and that is the reason for the increased security?
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
May 23rd, 2010, 06:50 AM
#8
Hyperactive Member
Re: ExchangeMapiCdo - How do I use it?
i have no idea,
but the question is, do you see a change when receiving or when sending or both ?
if you see a change only when sending not when receiving
it's very good, because you can send using CDO.
if no , it's a problem
-
May 23rd, 2010, 09:54 PM
#9
Re: ExchangeMapiCdo - How do I use it?
 Originally Posted by whatsup
i have no idea,
but the question is, do you see a change when receiving or when sending or both ?
if you see a change only when sending not when receiving
it's very good, because you can send using CDO.
if no , it's a problem 
Well, the security prompt appears for me when I try to send a email from my program with office outlook/express. However, the problem doesn't occur when doing the same when Windows Live Mail is install instead.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
May 23rd, 2010, 11:31 PM
#10
Re: ExchangeMapiCdo - How do I use it?
When you create a CDO Message with Outlook Express or Windows Live Mail installed it loads defaults from the default configured email account. When you send you will send using SMTP bypassing the mail client itself. Vista's Windows Mail does not seem to leave a standard account profile available for CDO to load.
If IIS is installed it sets different defaults, and if both IIS and one of the basic email clients is installed it sets yet different defaults.
CDOSYS Configuration CoClass
As I mentioned earlier, installing Outlook in Corporate Mode installs a replacement library. CDOSYS.DLL is replaced by CDOEX.DLL, which has different rules for initialization and message routing. By default the Exchange server and your Exchange mailbox will be used.
CDOEX Message CoClass
If you are installing Outlook in Internet-Only Mode this shouldn't apply.
Like so many things in the .Net Framework, System.Web.Mail is just a wrapper around the native COM capabilities of Windows. It is a long way around to invoke CDOSYS/CDOEX and will exhibit the same symptoms.
Are you using the old MAPI-based Microsoft CDO 1.21 Library instead of Microsoft CDO for Windows 2000/Microsoft CDO for Exchange???
Once again entirely different rules apply.
-
May 24th, 2010, 02:30 AM
#11
Re: ExchangeMapiCdo - How do I use it?
 Originally Posted by dilettante
Are you using the old MAPI-based Microsoft CDO 1.21 Library instead of Microsoft CDO for Windows 2000/Microsoft CDO for Exchange???
I'm not sure what you are referring to? The MAPI controls I added in the above project are these that come with Visual Basic 6.0. Also, the version of office outlook I have been using is 2003.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
May 24th, 2010, 04:39 PM
#12
Hyperactive Member
Re: ExchangeMapiCdo - How do I use it?
 Originally Posted by Nightwalker83
Well, the security prompt appears for me when I try to send a email from my program with office outlook/express
this is good new.
you can use two methods that in my app, to send mail.
one is cdo, the second is the actual protocol with SSL support.
the protocol works well with live.com
cdo works well with gmail.
these two methods don't need mapi.
-
May 24th, 2010, 09:45 PM
#13
Re: ExchangeMapiCdo - How do I use it?
 Originally Posted by whatsup
this is good new.
you can use two methods that in my app, to send mail.
one is cdo, the second is the actual protocol with SSL support.
the protocol works well with live.com
cdo works well with gmail.
these two methods don't need mapi.
Yeah, well, as far as I can tell the problem only occurs with Outlook/Express.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Jul 8th, 2010, 03:17 AM
#14
Re: ExchangeMapiCdo - How do I use it?
I have rewritten the code to use redemption instead of the imap control! I will posted the updated code in my thread linked to in the first post.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Jul 8th, 2010, 05:15 AM
#15
Hyperactive Member
Re: ExchangeMapiCdo - How do I use it?
 Originally Posted by Nightwalker83
I have rewritten the code to use redemption instead of the imap control! I will posted the updated code in my thread linked to in the first post.
sounds good news.
but i have one question: does it need outlook to be installed ?
EDIT: i saw that it needs MAPI, does this MAPI come with windows without outlook,
or can be download without outllok ?
Last edited by whatsup; Jul 8th, 2010 at 05:24 AM.
-
Jul 8th, 2010, 06:41 AM
#16
Re: ExchangeMapiCdo - How do I use it?
 Originally Posted by whatsup
sounds good news.
but i have one question: does it need outlook to be installed ?
No, read post #5 for details.
EDIT: i saw that it needs MAPI, does this MAPI come with windows without outlook,
or can be download without outllok ?
Yes, it comes built-in to Windows.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|