Answers.Body: <p>Check your Craft <code>storage/logs</code> folder for the underlying error message.  You can also use these knowledge base articles to help debug what's going on based on what you find:</p>
  
  <p><a href="https://craftcms.com/knowledge-base/troubleshooting-email-errors" rel="nofollow noreferrer">https://craftcms.com/knowledge-base/troubleshooting-email-errors</a></p>
  
  <p><a href="https://craftcms.com/knowledge-base/why-doesnt-craft-send-emails" rel="nofollow noreferrer">https://craftcms.com/knowledge-base/why-doesnt-craft-send-emails</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-06-12T04:11:46.823Z
Answers.LastActivityDate: 2020-06-12T04:11:46.823Z
Answers.UserDisplayName: Brad Bell
Body: <p>I'm trying to use mailgun to send emails. I'm on my local machine and I get the error: "There was an error testing your email settings." The API key matches up correctly and nothing of significance seems to be showing up in my logs. Can someone suggest another way of debugging this? The error message isn't too helpful on it's own. Thanks.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-06-11T23:58:23.380Z
Comments.Text: Is ``devMode`` enabled?
Comments.UserDisplayName: RitterKnight
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-10-19T10:36:27.593Z
Comments.Text: I have the same error. And when I look in the logs there is simply the same error again without further explanation: `web.log` $_SESSION = [ 'bd62416aa8538ede709019a5e113eea5__flash' => [ 'cp-error' => 1 ] 'bd62416aa8538ede709019a5e113eea5__auth_access' => [ 0 => 'editStructure:6' 1 => 'saveAssetInVolume:110' ] '1031b8c41dfff97a311a7ac99863bdc5__token' => '••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••' '1031b8c41dfff97a311a7ac99863bdc5__id' => 1 '1031b8c41dfff97a311a7ac99863bdc5__expire' => 1603106907 'commerce_customer' => '1' 'commerce_c
Comments.UserDisplayName: KSPR
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-10-19T23:23:56.377Z
Comments.Text: Check the logs near where you grabbed that from for `[error]` or `[warning]`
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-10-20T11:16:51.047Z
Comments.Text: Aha. Searching for `Warning` instead of error did the trick. 2020-10-20 13:15:30 [-][1][-][warning][application] Error sending email: Connection to tcp://mail.domain.com:992 Timed Out
Comments.UserDisplayName: KSPR
Tags: <emails>
Title: Mail: There was an error testing your email settings
ThreadText: # Mail: There was an error testing your email settings
  
  (Asked by: username_0 on 2020-06-11)
  
  I'm trying to use mailgun to send emails. I'm on my local machine and I get the error: "There was an error testing your email settings." The API key matches up correctly and nothing of significance seems to be showing up in my logs. Can someone suggest another way of debugging this? The error message isn't too helpful on it's own. Thanks.
  
  **Tags:** emails
  
  > **Comments:**
  > **username_1**: Is ``devMode`` enabled?  
  > **username_2**: I have the same error. And when I look in the logs there is simply the same error again without further explanation: `web.log` $_SESSION = [ 'bd62416aa8538ede709019a5e113eea5__flash' => [ 'cp-error' => 1 ] 'bd62416aa8538ede709019a5e113eea5__auth_access' => [ 0 => 'editStructure:6' 1 => 'saveAssetInVolume:110' ] '1031b8c41dfff97a311a7ac99863bdc5__token' => '••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••' '1031b8c41dfff97a311a7ac99863bdc5__id' => 1 '1031b8c41dfff97a311a7ac99863bdc5__expire' => 1603106907 'commerce_customer' => '1' 'commerce_c  
  > **username_3**: Check the logs near where you grabbed that from for `[error]` or `[warning]`  
  > **username_2**: Aha. Searching for `Warning` instead of error did the trick. 2020-10-20 13:15:30 [-][1][-][warning][application] Error sending email: Connection to tcp://mail.domain.com:992 Timed Out  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2020-06-12. Score: 2
  
  Check your Craft `storage/logs` folder for the underlying error message. You can also use these knowledge base articles to help debug what's going on based on what you find:
  
  <https://craftcms.com/knowledge-base/troubleshooting-email-errors>
  
  <https://craftcms.com/knowledge-base/why-doesnt-craft-send-emails>
  
  
  ---
  
  