title: Sending email via Outlook using Python, contact group doesn't resolve
body: <p>The recipient address and the distro lists do not immediately resolve. Outlook is smart enough to recognize the email addresses, but it doesn't recognize my distro list. At least not immediately.</p>
  <p>I'm using Office 365 if that matters.</p>
  <pre><code>from win32com.client import Dispatch
  
  
  outlook = Dispatch('Outlook.Application')
  Mail_Item = outlook.CreateItem(0)
  
  # This sends no problem
  # Mail_Item.To = 'first.last@company.com'
  
  # This does not send
  Mail_Item.To = 'Contact_Group_Test'
  
  Mail_Item.Subject = &quot;Subject_text&quot;
  Mail_Item.Body = &quot;Body_text&quot;
  Mail_Item.Recipients.ResolveAll()
  Mail_Item.Send()
  </code></pre>
  <p>While troubleshooting I used <code>Mail_Item.Display()</code> to see the message. After a few seconds it resolves all my addresses, including the contact group. HOWEVER, the contact group itself still doesn't work despite this.</p>