Python and Outlook, sendinf an image in the body of email

Emile van Sebille emile at
Mon Jul 23 23:02:23 CEST 2012

On 7/23/2012 11:33 AM bruceg113355 at said...
> I tried something similar to the example at .
> Problem is, this line is not understood:
>         mail.BodyFormat = OlBodyFormat.olFormatHTML

If I read the example properly, this is bvisual basic and should result 
in some form of visual basic error (possibly library related) if 
anything and not a python traceback.


>      Traceback (most recent call last):
>        ...
>        appt.BodyFormat = OlBodyFormat.olFormatHTML
>      NameError: name 'OlBodyFormat' is not defined
> Bruce

More information about the Python-list mailing list