I’m trying to send multiple emails using Python script and I want to add label to the e-mail defined as “Confidential”.
def send_email(reciepient, email, sender, subject, body, att):
mail = outlook.CreateItem(0)
mail.SentOnBehalfOfName = sender
mail.To = email
mail.CC = sender
mail.Subject = subject
mail.HtmlBody = body
mail.Attachments.Add(att)
mail.Display(False)
mail.send
How to update my code and define the label in the e-mail?
Thanks.
I’m looking for the advise on how to update my code and define default label for my emails.