[python-win32] MAPI with win32com

Werner F. Bruhin werner.bruhin at free.fr
Mon Mar 22 14:58:43 CET 2010


On 22/03/2010 13:58, Tim Golden wrote:
> [Tim Golden]
> the only client which really supports CDO, ie
>>> MAPI.Session
>>> is the full Outlook client. It's just about possible to use CDO without
>>> installing Outlook (by installing some standalone package whose name
>>> escapes me)
>
> [Werner Bruhin]
>> I found this:
>> http://www.microsoft.com/downloads/details.aspx?FamilyID=E17E7F31-079A-43A9-BFF2-0A110307611E&displaylang=en
>>
>
> Yep. Think that's the one.
>
>> At least I get past the above error, will see how far I get with this.
>> but that still only gives you access to Exchange, not to
>>> whatever interface TB exposes.
>
> That's really the problem. AFAICT, CDO is *basically* an interface to
> Exchange via Outlook. You can just about get away without the Outlook
> bit by installing the download you mention (which presumably includes
> the necessary bits of Outlook without the front-end). But I don't
> honestly think you can get away without Exchange. I suspect the idea
> is that you should be able to. But I'm not aware that anyone's
> implemented it to the extent that you could. Happy to be wrong.
>
>> I don't want to use Outlook, but I like to provide an additional way of
>> sending problem reports from within my application to me (MAPI,
>> smtplib), so hoped that I could use extended MAPI stuff.
>
> Hmmm. Good luck and keep us posted.
The luck run out pretty quickly - get to the logon but then it seems to 
want an existing profile.  So, back on having to get myself a copy of 
outlook to be able to test this stuff:(.
  For my understanding, is there
> some reason you can't simply send via SMTP directly? Do you need
> the intervening client?
I do offer the SMTP option using smtplib which works great, but some 
clients don't know/like to fill in the configuration stuff needed and 
others really want to see in their email client of choice the email to 
go out and it also gives them the record/archive of what has been sent.

Werner



More information about the python-win32 mailing list