I am searching an item in outlook through subject , want to do replay to all adding 3 ids in CC.
Easily able to add more recipients in To but not in CC please help
import win32com.client
outlook=win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")
inbox= outlook.Folders.Item(1).Folders['Inbox']
messages = inbox.Items
message = messages.GetLast()
count=0
for i, message in enumerate(messages):
# Search Mail
# if message.subject=='Search Filter by Subject':
rplyall=message.ReplyAll()
rplyall.Recipients.Add('hitesh.kumar@bhartiaxa.com') # Sender of the mail
rplyall.Recipients.CC('one.more@abc.com') # Trying to do this
rplyall.Copy('one.more@abc.com')
rplyall.Body='Testing reply all'
rplyall.Subject = 'Subject Reply to all 2'
rplyall.Send()