[python-win32] MAPI with win32com

Werner F. Bruhin werner.bruhin at free.fr
Mon Mar 22 15:11:45 CET 2010


Hi Mike,

On 22/03/2010 14:48, Mike Driscoll wrote:
> Hi Werner,
>
> <snip>
>> I found this:
>> http://www.microsoft.com/downloads/details.aspx?FamilyID=E17E7F31-079A-43A9-BFF2-0A110307611E&displaylang=en
>>
>>
>> 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.
>> Clients and me using TB are fine, I support that with the
>> simplemapi.py (http://www.johnnypops.demon.co.uk/python/simplemapi.py)
>> and it works fine, but clients who use Outlook (e.g. Office 11) get a
>> MAPI error 2 (failure).
>>>
>>> TJG
>>
>> 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.
>>
>> I guess I just have to get my hands onto an Outlook to be able to test
>> this stuff.
>>
>>
>> Werner
>>
>>
>
> I found this recipe: http://code.activestate.com/recipes/149461-mapi-send/
That is basically the same thing as I tried, it needs more then the 
download I mentioned in the other post.
>
> Since we dropped Exchange in favor of Zimbra, I cannot test this
> solution, but maybe it will help you. By the way, is smtplib not working
> for you?
smtplib is working great, but as mentioned before some users prefer 
using their email client (i.e. see what is going out, have an 
archive/copy of it ....) and MAPI solution if it works (which it does 
with all kind of software (Thunderbird, older outlook version ....) it 
requires no setup at all in my software.

Werner



More information about the python-win32 mailing list