[python-win32] Inquiry about Sending HTML format in Appointment in Outlook Application

Steven Manross steven at manross.net
Sat May 28 00:55:56 EDT 2022


As I recall, Calendar Items are a special kind of MailItem, and there is Body and BodyHTML on a mailItem which represent the “Text Body” and the “HTMLBody”.

https://docs.microsoft.com/en-us/office/vba/api/outlook.mailitem.bodyformat

As well, there is a MailItem.BodyFormat which is supposed to be set to olFormatHTML per the document above.

olBodyFormat enumeration docs are here:
https://docs.microsoft.com/en-us/office/vba/api/outlook.olbodyformat

They have some VBScript in the top URL that should be somewhat easy to convert to Python.

HTH

Steven
From: python-win32 <python-win32-bounces+steven=manross.net at python.org> On Behalf Of Ishaan Sathe
Sent: Friday, May 27, 2022 8:57 AM
To: python-win32 at python.org
Subject: [python-win32] Inquiry about Sending HTML format in Appointment in Outlook Application

Hii All ,
I am trying to send the Body in the Calendar invite in Outlook as HTML.
Can somebody help me how to do this ?

Thanks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/python-win32/attachments/20220528/5adf82c7/attachment.html>


More information about the python-win32 mailing list