I have a list of IDs that I need to turn into emails, but all of the addresses are the same, but all the IDs are unique. If I was in outlook I could just press ctrl K and have the address autocompleted. Is there a way to have similar functionality in python if the address path isn't readily available? This is what I currently have in a loop. It works if I add the @PATH.com, but not all the addresses are "@PATH.com"....
import win32com.client as win32
outlook = win32.Dispatch('outlook.application')
mail = outlook.CreateItem(0)
mail.To = U_ID #This is what the address path need to be completed
mail.Subject = 'auto email test'
mail.Body = "body"
mail.send