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....@python.org> On 
Behalf Of Ishaan Sathe
Sent: Friday, May 27, 2022 8:57 AM
To: python-win32@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

_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to