- This blog post was originally published on 06/24/2016 and was updated on 08/05/2019
Note: If you’re using SMTP to route all of your personal mail through SparkPost, awesome! However, be sure to use an email address with a different sending domain (not one associated with your SparkPost account) for your account login. That way, if you ever run into any issues, you’re still able to contact us for help.
You know you need to send email, but you don’t want to spend a lot of time or effort on it — you just want something that works out of the box. It’s not too much to ask! Many frameworks, languages, and tools come with SMTP support, but the last step is the most important – an SMTP server. SparkPost fills that need with SMTP support and a simple setup process.
Today, I’ll be demonstrating how to set up an SMTP relay, so you can use your own email client to send emails from your personal domain. I’ll be using Gmail as my email client and shopwithkindness.org as my sending domain.
Let’s get started!
How to Setup SparkPost as your SMTP Relay
There are a few things you’ll need before setting up an SMTP relay.
- A verified sending domain.
- An API key with the “Send via SMTP” permission enabled.
- An e-mail client or service which allows you to enable SparkPost as your SMTP relay.
For this walkthrough, I’ll be using Gmail. To begin, navigate to the settings.
From there, click on the “Accounts” tab.
Next, click on “Add another email address you own”.
In the pop-up menu, enter the (verified) email address and press next. I’d like to be able to send with “email@example.com”, so that’s what I type in.
Then, enter “smtp.sparkpostmail.com” as the SMTP Server,“SMTP_Injection” as the username, and 587 as the port. Your password should be your API key with “Send via SMTP” enabled. This information can be found under Account -> SMTP Relay in your SparkPost dashboard.
Let’s get started!
Lastly, you’ll need to login to your inbox to confirm. After that, we’re done! Time to send some Shop With Kindness emails.
If it turns out that SMTP isn’t the right email solution for you, consider taking advantage of the SparkPost API. The API has many pros (and cons). Take a look at Dave’s blog for more information regarding the differences between SMTP and API.