title: Airflow - Send email with AWS SES
body: <p>Trying to send an email from apache airflow using AWS Simple Email Service (SES), and it's returning errors that are not helping me solve the problem. I believe it's a configuration issue within SES, but I'm not sure what to change.</p>
  <p>General info:</p>
  <ul>
  <li>New SES instance, verified email.</li>
  <li>Airflow 1.10.10 running on Ubuntu 18.04 (local laptop).</li>
  <li>Same situation from EC2 instance on a separate AWS account.</li>
  <li>Running 1 DAG with a python operator that works fine.</li>
  <li>Sending email works with gmail smtp settings and an app password.</li>
  </ul>
  <p>Abbreviated DAG code:</p>
  <pre><code>...
  from airflow.operators.email_operator import EmailOperator
  ...
  email_status = EmailOperator(
          task_id=&quot;sending_status_email&quot;,
          to=&quot;myverifiedemail@mydomain.com&quot;,
          subject=&quot;Test from SES&quot;,
          html_content=&quot;Trying to send an email from airflow through SES.&quot;,
          dag=dag
  )
  ...
  
  </code></pre>
  <p>airflow.cfg SMTP Settings:</p>
  <pre><code>smtp_host = email-smtp.us-east-1.amazonaws.com
  smtp_starttls = True
  smtp_ssl = False
  smtp_user = AWSUSERKEY
  smtp_password = PASSWORDFROMAWSSMTP
  smtp_port = 587
  smtp_mail_from = myverifiedemail@mydomain.com
  
  </code></pre>
  <p>Errors Received while trying various changes to starttls, ssl, and port settings.</p>
  <pre><code>ERROR - (554, b'Transaction failed: Unsupported encoding us_ascii.')
  ERROR - STARTTLS extension not supported by server.
  ERROR - (SSL: WRONG_VERSION_NUMBER) wrong version number (_ssl.c:852)
  
  </code></pre>