We use cookies to show you more relevant content based on your browsing and navigation history. Please accept or manage your cookie settings below.
Here’s our cookie policy.
How to set up SMTP plugin for WP Calorie Calculator and WordPress and how to connect it with Google Workspace or another service
January 16, 2023
SMTP, or Simple Mail Transfer Protocol, is the standard protocol for sending email messages over the internet. When it comes to sending emails from a WordPress site, the default method is the PHP mail function. However, this method is not always reliable and can lead to issues with email deliverability. This is where an SMTP plugin comes in handy. SMTP plugins, like "WP Mail SMTP by WPForms", can help improve email deliverability by using a more reliable and secure method of sending emails. Additionally, using an SMTP plugin allows you to use your own email service provider, such as Google Workspace, rather than relying on the web host's email server.
Once you've installed the plugin (we'll use WP Mail SMTP in this example), you can proceed to configure the plugin settings which can be found by navigating to WP Mail SMTP in your WordPress dashboard, then selecting "Settings" and looking under the "General" tab.
Fill in the following fields:
From Email: this is the email address that emails will be sent from
From Name: the name that will be displayed as the sender
Mailer: select SMTP (in this example we'll use Google Workspace, you need to have a paid account with them to proceed, but there are no completely free SMTP solutions so Google sounds as a good choice for this)
Save settings
Then you need to create a Google Workspace API app to use their mailing system for SMTP:
Create a new project by clicking on the "Select a project" dropdown and then "New Project" button
Give your project a name and click on the "Create" button
Once the project is created, click on the "Enable APIs and Services" button
Search for "Gmail API" and click on the result
Click on the "Enable" button
Click on the "Create Credentials" button
Select "OAuth client ID" as the type of credentials
Select "Web application" as the application type
Give the credentials a name, and enter the authorized JavaScript origin and authorized redirect URI.
Click on the "Create" button
A client ID and client secret will be generated. Make a note of these
Go to plugin settings on WordPress and enter the client ID and client secret
After saving your settings you can go to the "Email Test" tab and try to send an email to your personal address to make sure that you set up everything correctly.
Hooray! We made it. Please welcome our newest V4 PRO. We've received a huge amount of requests to add an Elementor native widget. Finally it is live in our V4…
Right now, we’re working on broadening the list of languages WP Calorie Calculator supports. However, yours might be missing - sorry if that’s the case, our language list is still…
Continuing to throw great health blog ideas in, we can’t let you miss this news: a new, Pro version of WP Calorie Calculator is out! You may already know the…
Eating healthy, exercising, living actively - those are some great values to promote. But there’s a dangerously thin borderline between recommending good practices and implicitly punishing for not following them.…
Heart disease is the leading cause of death, according to the Centers For Disease Control and Prevention. The CDC estimates that nearly half of these deaths were preventable. The World…
We work hard to be more healthy and fit, exercise regularly and eat right, but are we truly fit? Health and fitness involve living in a body that is reliable,…
Losing weight is tough at the best of times. Every now and again, you find yourself craving junk food, feeling hungry, tired and miserable, and barely losing any weight at…
“Eat healthy food!” says everything and everyone these days. And it seems like we hardly need an explanation for the word healthy here: lots of protein, lots of veggies, no…
We live busy and demanding lives with countless activities that pull us in many directions. Between work, school and kids, it just seems that there just isn’t any time left…
If you’re reading this, 99% chance* that your lifestyle is mostly sedentary with little to no physical activity on business days. *The number may or may not be the result…
Along with the development of the webspace, we strive to keep up with trends in a timely manner and update the features of our plugin. If you are not familiar…
Let me guess: are you the owner of a website on active life, proper nutrition, and/or a healthy lifestyle? In any case, whatever you do in this field, you will…
SMTP, or Simple Mail Transfer Protocol, is the standard protocol for sending email messages over the internet. When it comes to sending emails from a WordPress site, the default method…
Hooray! We made it. Please welcome our newest V4 PRO. We've received a huge amount of requests to add an Elementor native widget. Finally it is live in our V4…
Right now, we’re working on broadening the list of languages WP Calorie Calculator supports. However, yours might be missing - sorry if that’s the case, our language list is still…