<p>Without any logs it's tricky to know where the issue is, have you confirmed that outbound SMTP ports 25, 465, 587 are open to send email? Are you running this on your local development environment or a hosting provider environment?</p>
<p>Make sure you are running with dev mode on, so you can see verbose information in the logs and full stack trace errors. The knowledgebase article you linked might be a bit misleading as I believe it's referring to the error output from a Craft CMS 2 website, not a Craft CMS 3 site.</p>
<p>The log file you need to look at is <code>/storage/logs/web.log</code>. When debugging is enabled, this file gets very verbose quickly. The best thing would be to completely clear it out and then do your SMTP test to see the specific error occurring without having to scroll through a lot of verbose info.</p>
<p>Equally are there logs on your SMTP providers side when you attempt to perform an SMTP request from Craft CMS? I'd guess not, given Craft CMS is throwing an error, but just in case it's at least making a negotiation to the SMTP server.</p>

CC BY-SA 4.0
2022-07-02T20:00:16.953Z
Thanks James. I did further troubleshooting and got it to work.
4midori
CC BY-SA 4.0
2022-07-03T19:00:52.033Z
@4midori Awesome. For the benefit of other, it would be great if you updated your post with the issue and solution to help others in the future.
James White
CC BY-SA 4.0
2022-06-24T07:39:19.903Z
2022-06-24T13:51:47.550Z
2022-06-24T13:51:47.550Z
James White
<p>I created a basic Sparkpost account and am trying to connect it to Craft to send email notifications.</p>
<p>When I click the 'test' button in Craft, I get &quot;there was an error testing your email settings&quot;, but there is nothing like
[exception.Craft\EmailTestException]
in the logs. <a href="https://craftcms.com/knowledge-base/troubleshooting-email-errors" rel="nofollow noreferrer">https://craftcms.com/knowledge-base/troubleshooting-email-errors</a></p>
<p>Note: password is the API key.</p>
<p><a href="https://i.sstatic.net/OsTEs.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/OsTEs.png" alt="" /></a></p>
<hr />
<p><strong>EDIT:</strong> The problem was simple, my credentials were incorrect - also, only port 587 worked with my set up, the alternate port did not. Please note, the error logs for this (craft/storage/logs/web.log) are not very helpful. Best to triple check credentials and settings.</p>

<emails><api><smtp>
Configuring Craft 3 with Sparkpost - SMTP - email errors
# Configuring Craft 3 with Sparkpost - SMTP - email errors

(Asked by: username_0 on 2022-06-16)

I created a basic Sparkpost account and am trying to connect it to Craft to send email notifications.

When I click the 'test' button in Craft, I get "there was an error testing your email settings", but there is nothing like
[exception.Craft\EmailTestException]
in the logs. <https://craftcms.com/knowledge-base/troubleshooting-email-errors>

Note: password is the API key.

[![](https://i.sstatic.net/OsTEs.png)](https://i.sstatic.net/OsTEs.png)

---

**EDIT:** The problem was simple, my credentials were incorrect - also, only port 587 worked with my set up, the alternate port did not. Please note, the error logs for this (craft/storage/logs/web.log) are not very helpful. Best to triple check credentials and settings.

**Tags:** emails, api, smtp

---

## 1 answers

### Answer by username_1 on 2022-06-24. Score: 2 | Accepted answer

Without any logs it's tricky to know where the issue is, have you confirmed that outbound SMTP ports 25, 465, 587 are open to send email? Are you running this on your local development environment or a hosting provider environment?

Make sure you are running with dev mode on, so you can see verbose information in the logs and full stack trace errors. The knowledgebase article you linked might be a bit misleading as I believe it's referring to the error output from a Craft CMS 2 website, not a Craft CMS 3 site.

The log file you need to look at is `/storage/logs/web.log`. When debugging is enabled, this file gets very verbose quickly. The best thing would be to completely clear it out and then do your SMTP test to see the specific error occurring without having to scroll through a lot of verbose info.

Equally are there logs on your SMTP providers side when you attempt to perform an SMTP request from Craft CMS? I'd guess not, given Craft CMS is throwing an error, but just in case it's at least making a negotiation to the SMTP server.

> **Comments:**
> **username_0**: Thanks James. I did further troubleshooting and got it to work.  
> **username_1**: @4midori Awesome. For the benefit of other, it would be great if you updated your post with the issue and solution to help others in the future.  

---

