Re: Inquiry about Sending HTML format in Appointment in Outlook Application

Steven Manross <[email protected]> Sat, 28 May 2022 04:55:56 +0000
Newsgroups gmane.comp.python.windows
Message-ID <[email protected]>
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 <[email protected]> On Behalf Of Ishaan Sathe
Sent: Friday, May 27, 2022 8:57 AM
To: [email protected]
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
[email protected]
https://mail.python.org/mailman/listinfo/python-win32