Using Python, how do I send an recurring email (using outlook) say every Monday, that will include an attachment? Attachment would be located on my desktop.
file_path = r"U:\\t\\Analytics\\Finance\\20 FP&A\\22 Forecast File.xlsx"
import os
import win32com.client as win32
# construct Outlook application instance
olApp = win32.Dispatch('Outlook.Application')
olNS = olApp.GetNameSpace('MAPI')
# construct the email item object
mailItem = olApp.CreateItem(0)
mailItem.Subject = 'memo'
mailItem.BodyFormat = 1
mailItem.Body = "Hello World"
mailItem.To = 'email example'
mailItem.Attachments.Add(file_path)
mailItem.Display()