Re: How to send a mail from app, without blocking APP!?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




Microsoft CDO 2.21 Library "CDO.DLL"
Microsoft CDO for Windows 2000 Library "CDOSYS.DLL"
Microsoft CDO for NTS 1.2 Library "CDONTS.DLL"
I have tried first 2 dll's, I was unable to create session with any of those two - even with VB CreateObject.
(the 3'th is old one standard as you specified so I wouldn't want to use it, expecially after these two failures)
All articles in MSDN are releated to the CDO.DLL (MAPI) not CDOSYS.DLL (CDO) ro I must be blind.
"Platform SDK"->"Database and Messaging Services"->"Collaboration Data Bobjects"->"CDO Library"->"Reference"
right below "Messagind API (MAPI)"

But when you use OE to compose message OE Compose window doen't block OE Main window,
as it does block my app (all windows) when I use MAPI for composing a mail.

[SolarAngel]


"Mark Yudkin" <myudkinATcompuserveDOTcom@xxxxxxxxx> wrote in message news:OhTMsX6fFHA.2700@xxxxxxxxxxxxxxxxxxxxxxx
| Suggest you check the documentation again .- you want CDO.Message, etc. Are
| you sure you're not looking at CDO V1.x?
|
| You can go with MAPI if you must - and that seems to be what you've done.
| But then you will need to accept the severe limitations of that API, as well
| as the fact that MS has deprecated it.
|
| Your comparison with OE is irrelevant, as OE is not a MAPI _client_. OE does
| not use MAPI to process e-mail send/receive.
|
| "[SolarAngel]" <not-for-mail> wrote in message
| news:e902C5UfFHA.576@xxxxxxxxxxxxxxxxxxxxxxx
| >
| > "Mark Yudkin" <myudkinATcompuserveDOTcom@xxxxxxxxx> wrote in message
| > news:#yyYlIUfFHA.1416@xxxxxxxxxxxxxxxxxxxxxxx
| > | As the MS documentation indicates, CDOSYS is available from Windows 2000
| > up.
| > | It is not available on NT4 (that's CDONT, being CDO v1.x - see my
| > earlier
| > | post). If you have to support NT4 from the same source, then you may
| > have a
| > | problem.
| > |
| > | Your code:
| > | > Set oSes = CreateObject("MAPI.Session")
| > | > Set oSes = New MAPI.Session
| > | is not CDOSYS, but MAPI. MAPI is no longer part of Windows as of Windows
| > | 2000, and you have to install Outlook to get it. See KB254458 and
| > KB314491,
| > | which also state "Microsoft recommends that vendors upgrade their
| > programs
| > | to use Collaboration Data Objects (CDO)." (as per my initial response).
| > |
| >
| > MSDN title Collaboration Data Objects (CDO) - all examples uses example as
| > I typed above to initialize session!?
| > Am I reading something wrong!?
| >
| >
| > | "[SolarAngel]" <not-for-mail> wrote in message
| > | news:ukwGBdIfFHA.3304@xxxxxxxxxxxxxxxxxxxxxxx
| > | >I have started reading article you have specified,
| > | > but one thing interests me is this DLL shipped & supported on XP and
| > other
| > | > NT OS's!?
| > | > also
| > | >
| > | > Set oSes = CreateObject("MAPI.Session")
| > | > Set oSes = New MAPI.Session
| > | >
| > | > always return Automation Error 0x80004005!?
| > | >
| > | > It seams to me that client will have to have something installed on
| > his OS
| > | > like Exchange!?
| > | >
| > | > [SolarAngel]
| > | >
| > | >
| > | > "Mark Yudkin" <myudkinATcompuserveDOTcom@xxxxxxxxx> wrote in message
| > | > news:eHvx1$GfFHA.3960@xxxxxxxxxxxxxxxxxxxxxxx
| > | > | MAPI is a very "awkward" API for this sort of thing. It's designed
| > to do
| > | > | exactly what you're seeing, and is very specifically and
| > deliberately
| > | > | designed not to do what you want (no, I don't know why). Use CDOSYS
| > (CDO
| > | > | V2+) - it was designed to support the sort of unattended e-mail
| > you'd
| > | > like
| > | > | (W2K and above). [CDO 1.x is merely an API over MAPI]
| > | > |
| > | > | Documentation is in the Platform SDK under "Message and
| > Collaboration -
| > | > | Collaboration Data Objects"
| > | > |
| > | > | "[SolarAngel]" <not-for-mail> wrote in message
| > | > | news:OLCA707eFHA.2128@xxxxxxxxxxxxxxxxxxxxxxx
| > | > | >I have tried with Simple MAPI, MAPI, MAPI32 API (from
| > | > | >MSVS\VC98\Include\Mapivb.bas - also new version from internet that
| > | > doesn't
| > | > | > work,
| > | > | > allways return automation error 80004005 and err.LstDLLError = 0!?
| > I
| > | > even
| > | > | > tried to rewrite declaration (dissasembled code to see
| > | > | > what MAPI32.DLL is doing with no success).
| > | > | >
| > | > | > LAST THING WILL BE TO MAKE MY OWN SMTP CLIENT,
| > | > | > or another app that will be called from my original app but this
| > is
| > | > far
| > | > | > from "simple" solution.
| > | > | >
| > | > | > I want to send some internal information & configuration from my
| > app
| > | > and
| > | > | > display mail to user to add/modify mail before he sends it
| > | > | > And major thing is WITHOUT BLOCKING MY APP that will be in
| > background
| > | > | > doing some work!
| > | > | >
| > | > | > If I debug project in VB and send mail, VB frozens and waits for
| > user
| > | > to
| > | > | > close Compose window!
| > | > | > cause in MAPI32.dll function creates new thread for composing
| > message
| > | > and
| > | > | > then
| > | > | > there is WaitForSingleObject with enough ms to wait for my life to
| > end
| > | > | > 0x0FFFFFFF.
| > | > | >
| > | > | > BUT in MS documentation there is :
| > | > | > Header file:MAPIVB32.BAS
| > | > | >
| > | > | > MAPISendMail(Session as Long, UIParam as Long, Message as
| > MapiMessage,
| > | > | > Recips as MapiRecip, Files as MapiFile, Flags as Long,
| > | > | > Reserved as Long) as Long - or any other MAPI function have 2
| > | > arguments
| > | > | > allways same Session & UIParam for allmost any dialog
| > | > | > (AddressBook, ComposeMessage, ReadMEsssage)!
| > | > | > UIParam - The parent window handle for the dialog box. A value of
| > zero
| > | > | > indicates that any dialog box displayed is application modal.
| > | > | > or window modal (not app modal) if handle is any valid window
| > handle.
| > | > But
| > | > | > there is no property for MAPIMessages control!?
| > | > | >
| > | > | > allmost to forget default MAPI client is OE that comes with w2k
| > sp2
| > | > (os is
| > | > | > little upgraded with patches) but mapi should work with
| > | > | > any MAPI Client.
| > | > | >
| > | > | > I hope that there is still hope for me q;-)
| > | > | >
| > | > | > [SolarAngel]
| > | > | >
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
|
| Processed by 'SolarAngel-yVBProxy Ver:1.03.0024' contact yvbproxy@xxxxxx for more information!


.



Relevant Pages

  • Re: How to send a mail from app, without blocking APP!?
    ... I have my own cMAPI class now, that incorporates MAPI API, ... still I can't make it work without APP MODAL, it seams to me that UIParam argument in all functions has to be pointer to CWnd class ... I don't want to loose more time on this - now it seams to me like impossible task, I can bet that MS support would say "It is by ... MAPI is no longer part of Windows as of Windows ...
    (microsoft.public.vb.winapi)
  • Re: Mapi - Fehler
    ... unter Windows 2000 A00/XP und WinXp A00/XP funktioniert. ... Dieser kommt in der Standard Mapi nicht vor. ... Die gleichen Befehle verwenden IIRC auch die Collaboratiion Data Objects (CDO Version 1.2). ... CDO for Windows 2000 Library, MS CDO 1.21 Library oder eine andere MAPI Library? ...
    (microsoft.public.de.access)
  • Re: More of PCD ranting
    ... > Here is the opinion of 'yet another poster' about me: ... Did you know about Microsoft CDO for Windows 2000, ... Jim C. Pickering ...
    (comp.databases.ms-access)
  • Re: how to capture appointment/task/new mail arrival events?
    ... Firstly there are two different subsystems - POOM for working with Appointments, Tasks and Contacts and MAPI for working with Email and SMS. ... In WM5.0 and above POOM has support for Windows Message notifications on item creation, ... How to do it in Windows Mobile 6? ...
    (microsoft.public.pocketpc.developer)
  • Re: Control Panel: missing tools
    ... Microsoft CDO for Windows 2000 ... MS-MVP Windows Shell/User ... I uploaded all the shortcuts. ... just copy the uploaded shortcuts to: ...
    (microsoft.public.windowsxp.help_and_support)