You can automate Outlook from Python:
import win32com.client as win32
outlook = win32.Dispatch('outlook.application')
mail = outlook.CreateItem(0)
mail.To = 'To address'
mail.Subject = 'Message subject'
mail.Body = 'Message body'
mail.HTMLBody = '<h2>HTML Message body</h2>' #this field is optional
mail.VotingOptions = "Yes;No"
mail.Send()
The MailItem.VotingOptions property sets a string specifying a delimited string containing the voting options for the mail message. This property uses the character specified in the value name, sList
, under HKEY_CURRENT_USER\Control Panel\International
in the Windows registry, as the delimiter for multiple voting options.
You may find the Send Outlook Email Via Python? page helpful.