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

bruceg113355 at gmail.com bruceg113355 at gmail.com
Mon Jul 23 14:33:02 EDT 2012


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

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

Bruce



More information about the Python-list mailing list