<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>

CC BY-SA 4.0
2020-06-12T04:11:46.823Z
2020-06-12T04:11:46.823Z
Brad Bell
<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>

CC BY-SA 4.0
2020-06-11T23:58:23.380Z
Is ``devMode`` enabled?
RitterKnight
CC BY-SA 4.0
2020-10-19T10:36:27.593Z
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
KSPR
CC BY-SA 4.0
2020-10-19T23:23:56.377Z
Check the logs near where you grabbed that from for `[error]` or `[warning]`
Brad Bell
CC BY-SA 4.0
2020-10-20T11:16:51.047Z
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
KSPR
<emails>
Mail: There was an error testing your email settings
# 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>


---

