title: How do I generate and open an Outlook email with Python (but do not send)
body: <p>I have a script that automatically creates and sends emails sends emails using the simple function below:</p>
  
  <pre><code>def Emailer(text, subject, recipient):
      import win32com.client as win32   
  
      outlook = win32.Dispatch('outlook.application')
      mail = outlook.CreateItem(0)
      mail.To = recipient
      mail.Subject = subject
      mail.HtmlBody = text
      mail.send
  </code></pre>
  
  <p>But how do I open this email in an Outlook window so that it can be manually edited and sent?</p>
  
  <p>Ideally, I'd like something like this:</p>
  
  <pre><code>def __Emailer(text, subject, recipient, auto=True):
      import win32com.client as win32   
  
      outlook = win32.Dispatch('outlook.application')
      mail = outlook.CreateItem(0)
      mail.To = recipient
      mail.Subject = subject
      mail.HtmlBody = text
      if auto:
          mail.send
      else:
          mail.open # or whatever the correct code is
  </code></pre>