#mail.CC = 'example1@abc.com', 'example1@abc.com'
<pre> import win32com.client as win32 import datetime # Current Day Date current_date = datetime.datetime.today().strftime('%d-%B-%Y') print("Current Date is: = ", current_date) mail = win32.Dispatch('outlook.application').CreateItem(0) mail.To = 'example1@abc.com' #mail.CC = 'example1@abc.com', 'example2@abc.com' mail.Subject = 'Tower Wise Status: '+current_date+'' mail.HTMLBody =\ ' <html> ' \ ' <body>' \ ' <p>Hello Pratap,<br><br>'\ ' <font size="05" color="blue">PFA Tower Wise Pendency.</font><br>' \ ' </body>' \ ' </html>' attachment = 'D:\\SBC\\01-03IRE\\18-Follow-up_Analysis\\Daily_Tower-wise.xlsx' mail.Attachments.Add(attachment) mail.Display(True)
mail.CC = 'VN00575957@TechMahindra.com; SS00633145@TechMahindra.com'
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)