Email Provider Setup
3 min read
Smart Cycle Discounts uses WordPress’s email system to send notifications. For reliable delivery, we recommend configuring a proper email provider. This guide covers setup options and troubleshooting.
Default Email Behavior #
How WordPress Sends Email #
By default, WordPress uses PHP’s mail() function, which:
- Sends via your web server’s mail system
- May be filtered as spam by recipients
- Has no delivery tracking or confirmation
- Can be unreliable depending on hosting
When Default Works Fine #
- Quality managed WordPress hosting
- Low email volume
- Internal notifications only
- Hosting includes email service
When You Need a Better Solution #
- Emails going to spam
- Emails not arriving at all
- Need delivery confirmation
- High volume of notifications
- Shared or budget hosting
Recommended Email Solutions #
SMTP Plugins #
SMTP (Simple Mail Transfer Protocol) plugins let you route WordPress emails through a dedicated email service:
| Plugin | Free Tier | Best For |
|---|---|---|
| WP Mail SMTP | Yes | Most popular, easy setup |
| FluentSMTP | Yes | Multiple connections, logging |
| Post SMTP | Yes | Email logging, debugging |
| Easy WP SMTP | Yes | Simple configuration |
Transactional Email Services #
These services specialize in reliable email delivery:
| Service | Free Tier | Key Features |
|---|---|---|
| SendGrid | 100 emails/day | High deliverability, analytics |
| Mailgun | 5,000 emails/3 months | Developer-friendly, logging |
| Amazon SES | 62,000/month (from EC2) | Very affordable at scale |
| Postmark | 100 emails/month | Excellent deliverability |
| Brevo (Sendinblue) | 300 emails/day | Easy setup, good free tier |
Setting Up SMTP #
General SMTP Setup Process #
- Choose and install an SMTP plugin
- Sign up for a transactional email service
- Get API credentials from the service
- Configure the SMTP plugin with credentials
- Send a test email to verify
Example: WP Mail SMTP + SendGrid #
Step 1: Install WP Mail SMTP #
- Go to Plugins → Add New
- Search for “WP Mail SMTP”
- Install and activate
Step 2: Create SendGrid Account #
- Go to sendgrid.com
- Sign up for free account
- Verify your email domain (recommended)
- Create an API key with “Mail Send” permission
Step 3: Configure WP Mail SMTP #
- Go to WP Mail SMTP → Settings
- Set “From Email” to your verified sender
- Set “From Name” to your site name
- Choose “SendGrid” as mailer
- Paste your API key
- Save settings
Step 4: Send Test Email #
- Go to WP Mail SMTP → Tools → Email Test
- Enter your email address
- Click “Send Test Email”
- Check inbox (and spam) for delivery
Domain Authentication #
Why Authenticate #
Domain authentication proves you own the sending domain, dramatically improving deliverability:
- Emails less likely to hit spam
- Recipient servers trust your messages
- Professional sender reputation
Authentication Methods #
| Method | Purpose | Difficulty |
|---|---|---|
| SPF | Authorizes servers to send for your domain | Easy (DNS record) |
| DKIM | Cryptographically signs emails | Medium (DNS record) |
| DMARC | Tells receivers how to handle failures | Medium (DNS record) |
Setting Up Authentication #
Most email services provide domain authentication:
- Go to your email service’s domain settings
- Add your sending domain
- Service generates DNS records
- Add records to your domain’s DNS
- Verify in the email service dashboard
From Address Configuration #
Sender Address Best Practices #
- Use your domain: [email protected], not @gmail.com
- Be consistent: Same from address for all emails
- Use a real address: One you can receive replies to
- Match authentication: From domain should be authenticated
Configuring in WordPress #
- Most SMTP plugins have “From Email” and “From Name” settings
- Set these to match your authenticated domain
- Example: “Store Notifications” <[email protected]>
Testing Email Delivery #
Test Methods #
1. SMTP Plugin Test #
Most SMTP plugins have built-in test email functionality.
2. Smart Cycle Discounts Test #
- Go to SC Discounts → Notifications → Settings
- Click “Send Test Email”
- Verify delivery to all configured recipients
3. WordPress Core Test #
Try resetting your password – this tests WordPress email.
Checking Delivery #
- Check inbox: Did it arrive?
- Check spam: Was it filtered?
- Check email logs: SMTP plugins often log deliveries
- Check service dashboard: Email services show delivery status
Troubleshooting #
Emails Not Sending #
| Problem | Likely Cause | Solution |
|---|---|---|
| No emails at all | Server mail disabled | Use SMTP plugin |
| SMTP errors in log | Wrong credentials | Verify API key/password |
| Connection timeout | Port blocked | Try different SMTP port |
| Authentication failed | Invalid credentials | Regenerate API key |
Emails Going to Spam #
| Problem | Likely Cause | Solution |
|---|---|---|
| Gmail spam | No authentication | Set up SPF/DKIM |
| Corporate filters | New sender | Ask recipient to whitelist |
| Spam-like content | Trigger words | Can’t change – it’s notification text |
| Bad sender reputation | Shared IP issues | Use dedicated IP (paid tiers) |
Delayed Emails #
- WP-Cron delays: Low-traffic sites may have cron delays
- Queue processing: Check queue status in SC Discounts
- Service queues: Some email services batch deliveries
Email Logging #
Why Log Emails #
- Verify notifications were sent
- Debug delivery issues
- Track when alerts were sent
- Audit notification history
Logging Options #
| Source | What It Shows |
|---|---|
| SC Discounts Queue | Pending/sent/failed notifications |
| SMTP Plugin Logs | All WordPress emails sent |
| Email Service Dashboard | Delivery status, opens, bounces |
Hosting Considerations #
Shared Hosting #
- Often has email sending limits
- May have poor sender reputation
- PHP mail() may be restricted
- Recommendation: Use external SMTP service
Managed WordPress Hosting #
- Usually includes email functionality
- May have built-in SMTP
- Check host documentation
- Examples: WP Engine, Kinsta, Flywheel
VPS/Dedicated #
- Full control over email configuration
- Can run own mail server (not recommended)
- Recommendation: Still use external service for reliability
Cost Considerations #
Free Tiers Are Usually Sufficient #
For notification emails, free tiers often provide enough volume:
- Smart Cycle Discounts typically sends 1-10 emails per day
- Even the smallest free tier (100/day) is plenty
- Only consider paid if you have many campaigns and recipients
When to Upgrade #
- Hitting free tier limits
- Need dedicated IP for reputation
- Require advanced analytics
- Enterprise compliance requirements