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

bruceg113355 at gmail.com bruceg113355 at gmail.com
Mon Jul 23 23:24:02 CEST 2012


These do not work:

  appt.BodyFormat = olBodyFormat.olFormatHTML 
      ...
      appt.BodyFormat = olBodyFormat.olFormatHTML
      NameError: name 'olBodyFormat' is not defined

  

  appt.BodyFormat = win32com.client.constants.olFormatHTML 
     ...
     appt.BodyFormat = win32com.client.constants.olFormatHTML
     File "C:\Python26\lib\site-packages\win32com\client\__init__.py", 
        line 170, in  __getattr__
     raise AttributeError(a)
     AttributeError: olFormatHTML


Bruce



More information about the Python-list mailing list