Answers.Body: <p>This question appears to be the same as <a href="https://civicrm.stackexchange.com/questions/9467/outbound-mail-fails-after-upgrading-to-4-7-1">Outbound mail fails after upgrading to 4.7.1</a> tl/dr i suspect your probably running on php5.6 or similar version and the ssl certificate for smtp.mailgun.org is not valid or is a CACert or similar and PHP5.6 is saying i can't validate certificate. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-26T21:56:07.550Z
Answers.LastActivityDate: 2016-09-26T21:56:07.550Z
Answers.LastEditDate: 2017-04-13T12:53:13.207Z
Answers.UserDisplayName: Seamus Lee
Body: <pre><code>authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 Start TLS)]
  </code></pre>
  
  <p>Hi</p>
  
  <p>I am getting the above error message when trying to setup my outbound email. I'm using mailgun and have the drupal smtp module setup and working using identical details.</p>
  
  <p>Any ideas where to start troubleshooting this?</p>
  
  <p>Thanks</p>
  
  <p><a href="https://i.sstatic.net/41cAX.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/41cAX.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.sstatic.net/MwHY3.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/MwHY3.png" alt="enter image description here"></a></p>
  
Tags: <smtp>
Title: authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 Start TLS)]
ThreadText: # authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 Start TLS)]
  
  (Asked by: username_0 on 2016-07-12)
  
  authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 Start TLS)]
  
  Hi
  I am getting the above error message when trying to setup my outbound email. I'm using mailgun and have the drupal smtp module setup and working using identical details.
  Any ideas where to start troubleshooting this?
  Thanks
  
  **Tags:** smtp
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-09-26. Score: 2
  
  This question appears to be the same as [Outbound mail fails after upgrading to 4.7.1](https://civicrm.stackexchange.com/questions/9467/outbound-mail-fails-after-upgrading-to-4-7-1) tl/dr i suspect your probably running on php5.6 or similar version and the ssl certificate for smtp.mailgun.org is not valid or is a CACert or similar and PHP5.6 is saying i can't validate certificate.
  
  
  ---
  
  