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

Emile van Sebille emile at fenx.com
Mon Jul 23 17:02:23 EDT 2012


On 7/23/2012 11:33 AM bruceg113355 at gmail.com said...
> I tried something similar to the example at http://stackoverflow.com/questions/4312687/how-to-embed-images-in-email .
>
> 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.

Emile

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






More information about the Python-list mailing list