How to set up an email campaign in WordPress. Step-by-step guide (Mailster, SMTP, Gmail API)
How do you make sure your emails reach your subscribers and don't end up in spam?
Email marketing is one of the most effective tools for interacting with customers. If you run an online business, blog or sell products, automated mailing will help increase sales and retain the audience.
🚀 Why is email marketing important?
✔ Conversion higher than in social networks
✔ Letters do not get lost in the tape, like the posts
You can automate sales and communication with clients
👉 But in order to avoid spam, it is important to get it right set up a sending method!
📌 Methods for sending emails in WordPress
So that WordPress can send letters, it uses three methods:
1️⃣ PHP Mail (not recommended)
⚠ Unstable and unreliable → letters often end up in spam Or they don't.
2️⃣ SMTP is the best option for most
📩 What is SMTP?
SMTP (Simple Mail Transfer Protocol) is a way to send emails through third-party mail server.
✅ Popular SMTP providers:
- Gmail SMTP (up to 500 emails/day)
- SendGrid (up to 100 emails/day for free)
- Mailgun (from 1000 letters/month)
- Amazon SES (cheap for mass mailings)
3️⃣ Gmail API is the perfect solution for Gmail users
🚀 Advantages of the Gmail API:
✔ Works no passwords in WordPress
✔ Does not have limit of 500 emails/day
✔ The best deliverability
📌 How to install Mailster on WordPress?
To automate your newsletter, we recommend that you Mailster plugin.
🔹 Why Mailster?
✅ Create professional emails via drag-and-drop
✅ Automatic series of letters
✅ Tracking statistics opens and clicks
🔹 How to install Mailster?
1️⃣ У WordPress > Plugins press "Add new"
2️⃣ Enter in the search Mailster
3️⃣ Install and activate the plugin
4️⃣ Go to Mailster > Settings
📌 Now you need to set up the sending method!
📌 How to set up SMTP in Mailster?
📩 SMTP is the best option for stable email delivery.
1️⃣ Go to Mailster > Settings > Send
2️⃣ Select SMTP
3️⃣ Enter the server details (depending on the provider):
Gmail SMTP
📌 SMTP server: smtp.gmail.com
📌 Port: 465 (SSL) or 587 (TLS)
📌 User name: your Gmail
📌 Password: create an "Application Password" in Google
SendGrid SMTP
📌 SMTP server: smtp.sendgrid.net
📌 Port: 587
📌 Login: apikey
📌 Password: SendGrid API key
Mailgun SMTP
📌 SMTP server: smtp.mailgun.org
📌 Port: 587
📌 Login: your Mailgun login
📌 Password: API key
📌 Save the settings and send the test email.
👉 If you want an even more stable method, connect the Gmail API!
📌 How to set up Gmail API for Mailster?
🚀 Why is Gmail API better than SMTP?
✔ Safer - no need to enter passwords in WordPress
✔ Unlimited 500 emails/day
✔ Better deliverability
🔹 How to enable Gmail API?
1️⃣ Go to Google Cloud Console (console.cloud.google.com)
2️⃣ Create new project
3️⃣ Open API & Services > Library
4️⃣ Find Gmail API and press Enable
🔹 How to create OAuth 2.0 Credentials?
1️⃣ Go to APIs & Services > Credentials
2️⃣ Click "Create Credentials" > "OAuth Client ID"
3️⃣ Select Application Type: Web application
4️⃣ Add URI redirect:
📌 https://developers.google.com/oauthplayground
🔹 How to connect Gmail API in Mailster?
1️⃣ In Mailster > Settings > Send
2️⃣ Select Gmail API
3️⃣ Enter Client ID, Client Secret and Refresh Token
4️⃣ Save and test the connection
✅ It's done! Your emails will now be delivered consistently!
📌 Checklist for a successful email campaign
✅ Use SMTP or Gmail API
✅ Check out SPF, DKIM, DMARC records
✅ Avoid Spam words in headlines
✅ Send useful content, not just advertising
✅ Test delivery via Mail Tester (mail-tester.com)
📌 Conclusion
📩 Email marketing is a powerful marketing tool.
👉 If you have small mailings - use Gmail SMTP
👉 If massive - best option SendGrid or Mailgun
👉 If you want to stability - connect Gmail API
📌 Subscribe to my newsletter to receive more useful materials!
💬 What method of sending do you use? Let us know in the comments!
