This tutorial series explains how to troubleshoot and fix common errors that you may encounter when deploying, maintaining, and updating your WordPress installation.
Each tutorial in this series includes descriptions of common deployment, maintenance, or update errors, and explores ways to fix and optimize your installation to scale.
Sending emails and notifications including form submission verifications and password resets from your WordPress site is an essential function. The process of sending automated emails is typically handled by an SMTP (simple mail transfer protocol) server, but because SMTP servers are often complex to set up and require constant maintenance and monitoring against spam practices, using an external mail service is often a viable solution to attend to your WordPress site needs.
In this tutorial, learn how to install and configure the Easy WP SMTP plugin to send emails from your WordPress site using an external mail service such as Gmail.
Step 1 — Installing the Easy WP SMTP Plugin
There are a number of ways to set up your WordPress site to send email notifications, and choosing the right one for your WordPress depends on your server configuration and preference. While you could choose to send emails directly from your server, the safest and most secure way to send emails from your WordPress site is through use of an external Email Service Provider (ESP) or SMTP server. Using an ESP or SMTP server ensures compatibility with popular email servers, and keeps emails from your server or Droplet out of spam and junk folders.
For this tutorial, we’ll use the Easy WP SMTP plugin. You can install this plugin by visiting your WordPress dashboard, then accessing the Plugins item from the left menu. Click the Add New Plugin button, then search for Easy WP SMTP within the Search Plugins… search box.
After installing the plugin, click on the Activate button to enable it. Then, move on to the next step to configure the Easy WP SMTP plugin to work with your SMTP server for outgoing emails.
Step 2 — Configuring WordPress Email Settings
To configure your WordPress SMTP plugin, visit Settings on your dashboard’s left menu, select the Easy WP SMTP menu option, then visit the General Settings tab within to set your preferences for Sender Name, SMTP Port, credentials, and more.
For detailed information about the various Easy WP SMTP plugin settings available, visit the main plugin page.
Step 3 — Testing Email Settings
To test your settings, navigate to the Easy WP SMTP settings page, towards the bottom of the page to Testing and Debugging Settings. You can send test emails and work to debug errors with your email server by augmenting the fields in this section.
For more details about testing, visit the plugin download page.
In this tutorial, you used the Easy WP SMTP plugin to set up outgoing emails from your WordPress site. To learn about alternative ways to use SMTP servers with DigitalOcean Droplets, visit this tutorial, Using Gmail SMTP Servers to Send Email From WordPress on DigitalOcean.
Email is the sharpest tool in the box for building relationships, generating new customers, and increasing sales on your website. Here’s how to get started.
Remember in 1998’s You’ve Got Mail when Meg Ryan‘s character waits impatiently for her dial-up internet to connect before typing an email to her virtual pen pal on a simple dialog box? Watch it now and cringe; we’ve come a long way, baby.
But while dial-up and AOL instant messaging are stuck in the stone ages of the internet, email isn’t, especially for you website owners out there — and here’s why.
Email still has a very real place in society, with more than four billion email users worldwide, a number predicted to rise to 4.5 billion by 2024.
Even though we tend to dread the sight of an overstuffed inbox, the reality is this: Email triumphs as a powerful tool of communication and persuasion for website owners and businesses.
And marketers understand this.
In fact,89% of marketers say that email is their primary channel for lead generation. This seemingly-archaic medium is increasingly relevant — unlike screen names or Myspace pages — for website owners looking to build customer relationships and augment sales.
Marketers consistently rank email as the single-most-effective tactic for meeting their awareness, acquisition, conversion, and retention goals. They’ve branded it, fittingly, “the workhorse” and prove your marketing budget should include more $$$ allotted for an invested email strategy.
And they’re not the only ones waving virtual foam fingers for email practices; more than half of consumers say they enjoy receiving emails from brands.
But understand this: You don’t have to be a big-shot marketer to create and send email campaigns. Even beginners can use emails to generate slam-dunk sales or build a loyal blog following.
So what exactly is email marketing? How can you encourage customers to sign up for your emails in the first place? Then, how do you craft sparkling newsletter copy while avoiding the spam folder?
Well, you’re in luck. We developed the Website Owner’s Guide to Email Marketing to help you understand and implement the fundamentals of email marketing. Read on and learn the ins-and-outs of segmentation, automation, sequencing, bounce rates, and how to craft that email your visitors are anxious to open:
And now, with the increased usage of everything mobile, people are “always on” in terms of their inboxes: whether on commutes, in the bathroom (germy, but true), or in almost every social situation, they’re one micro-click away from checking their email.
Email marketing capitalizes on habits like this in a major way.
At its most basic, email marketing involves acquiring the email addresses of potential customers as a way to share content with them and build business-to-customer relationships. And there’s a reason that this strategy is tried-and-true; it’s a good investment — for every dollar spent, email marketing averages an ROI of $38. Cha-ching!
The numbers don’t lie: 66% of consumers have made a purchase online as a direct result of an email marketing message.
Still not convinced that you need an email marketing strategy? Consider these stats:
You are six times more likely to get a click-through from an email campaign than you are from a tweet. Bonus: you get more than 140 characters to do it.
90% of email gets delivered to the intended recipient’s inbox, whereas only 2% of your Facebook fans see your posts in their News Feed (they’re probably watching cat videos).
Email is 40 times more effective at acquiring new customers than Facebook or Twitter and achieves 174% more conversions.
More people use emailthan social platforms.
Email is a direct line of communication you have with website visitors that explicitly said they want to hear from you!
Some social media platforms cater to specific age groups — and not others (hello, Snapchat). Biting your nails over catering to millennials, baby boomers, or Gen Xers, respectively? Email marketing crosses age groups in terms of effectiveness. Email is the preferred means of business communications across all age groups.
Once you have their email address, you can continue to market to your subscribers for mere pennies (unless they unsubscribe). A budget-friendly marketing gift that keeps on giving!
Consider a basketball analogy: Email marketing is like shooting a layup, versus a shot from half-court . . . blindfolded. One is targeted and direct — an almost guaranteed score — while the other is haphazard hit-or-miss.
Point made, yes?
So, let’s get down to it.
What You Need to Get Started
If you’re a business owner, you’ve probably got a snazzy website up and running. If not, follow this guide to building a WordPress website in five minutes and then rejoin us.
Don’t worry. We’ll wait.
All setup? OK, now it’s time to market your content and products to loyal followers.
First, it’s smart to set some goals and make a plan for what you want to accomplish through your email marketing efforts. This will guide the type of messages you sent and how you target your subscribers.
Second, you’ll need a reliable Email Service Provider (ESP). This kind of provider is different than your basic Gmail account — an ESP allows you to send messages in bulk.
The most popular of these is probably MailChimp. Still, many ESPs offer various features — like security reports and levels of automation — so do your research and choose a service that provides the tools you want at the price your budget allows.
Next: Building a list of subscribers.
Successful email marketing works like visiting someone’s house — you have to be invited first. Email marketing begins when a potential or current customer gives you their permission to send them emails.
Just say “Nooooooo!” to buying email lists or firing off spammy messages to those who haven’t granted you their permission. You want to nurture relationships that lead to sales, not alienate and annoy potential customers. (We’ll address this more in the “Slam That Spam” section below).
For your website, you accomplish this with an opt-in form. You’ve probably seen a handful of different versions of these on nearly every web page you visit.
Just as there is with crafting your email content itself, there’s an art to creating a winning opt-in message, like incorporating appealing visuals, a persuasive description — that offers subscribers some kind of additional benefit — and a compelling subscribe button (among other things).
OptinMonster is a simple — and effective — way to set up lead capture forms on WordPress (and other websites and e-commerce sites) that integrate with many ESPs. Easy peasy!
OptinMonster is a simple — and effective — way to set up lead capture forms on WordPress (and other websites and e-commerce sites) that integrate with many ESPs. Easy peasy!
According to OptinMonster:
“Email list segmentation is the process of breaking your subscribers into smaller groups based on specific criteria so that you can send them more personalized and relevant emails.”
Emails that are more targeted will help you get the right content to the people who will be most interested in reading it, resulting in higher click-through rates and conversions (not to mention a decrease in the number of those hitting the “unsubscribe” button or sending your mail to spam). By segmenting, you can vary the content, like sending your newsletter or promotional content to the most receptive audience.
So, what kinds of groups can you segment subscribers into? Here are a few examples:
Location — Having an upcoming event or pop-up sale? Notify subscribers who are local to the area.=
New Subscribers — Welcome the newbies and let them know how glad you are to have them as a part of your following.
Items Remaining in Shopping Cart — Give a call to action to those hesitant or forgetful shoppers. Remind subscribers with yet-to-be-purchased products in their online carts to complete their check-out.
Preferences — Segment your emails based on certain types of emails. Some subscribers may only want to be notified about upcoming sales or discounts; others may want news of every just-launched blog post.
Open Rate — Call it a “frequent-reader” perk: lavish your engaged subscribers with unique content or premiums.
Survey or Quiz Results — Group customers based on how they respond to your prompts for feedback.
Those are just a few ideas on the ways you can segment your email list (and there are tons more).
The goal of segmentation is personalization; each subscriber receives content relevant to them and will, therefore, interact with the content more. Picture it: fewer spam designations, more engagement, more successful email campaigns, more conversions, etc.
This can also be accomplished with OptinMonster as it integrates with your ESP.
Along with segmentation is sequencing, a tactic in which a series of emails are generated based on set intervals or subscriber behavior-triggered automations.
Sequencing helps you automate (less work for you) and get the right messages to your subscribers — the groups you’ve segmented — when they will be most effective. (More details here.)
Types of sequences may include a series of emails targeted at reactivating disengaged subscribers, encouraging them to attend a local event, or following up on a recent purchase.
And it works; after one year of using automation, 32% of businesses reported increased revenue.
So what is spam exactly? Well, in short, it’s unsolicited messages (meaning, no consent was given to receive them) sent in bulk. While sometimes amusing to read, spam is ultimately annoying to consumers, and no business wants their carefully crafted copy relegated to the black hole abyss of email spam holes.
It’s true: Consumers are deleting fewer promotional emails without looking than in years past.
But with this, there’s good news and bad news.
The good: As people are sending fewer email communications to the trash (or spam) bin, it’s a sign that perhaps email marketers are refining their craft so that email messages are more useful to consumers.
The bad: Spam filters are better and more aggressive than ever before, so it’s important to take care that your emails don’t lead to a negative brand association.
So let’s consider a few (OK, several) roadblocks that can stall you from reaching your consumers’ inboxes.
Understand the How of Spam Filters
An important key is understanding how the filters work in the first place. While there are many triggers, here are some things they look for:
Relationship with subscriber
Reputation of IP address and sender domain (read more on this here)
Quality of email subject line, teaser, and content
Quality and safety of included links
Presence or absence of images
Inclusion of text version of the email
Additionally, spam filters monitor subscriber behavior to improve their filtering formulas, tracking actions like the opening of emails, time spent reading the email, enabling of images, spam flagging, folders applied to email by the subscriber, forwarding of emails, etc.
And because these behaviors vary from subscriber to subscriber, a unique “email spam score” is given to each email sent to every individual subscriber. Sounds complicated, but there are things you can do to significantly improve your chances that your message will arrive successfully to your subscriber.
Spam filters are smart. Some other instant red flags: over-the-top font colors (consumers don’t like this either), font color tags that aren’t formatted correctly, misspellings, overstuffing keywords, and risky word choices (best to avoid “free,” “prize,” “promo,” “no obligation,” and “buy”).
In addition, be conservative with punctuation and capitalization. Aside from the resulting in red-flagging, it’s just . . . ANNOYING!!!!!
See? We told you.
Lastly, don’t play dirty. Attempting to outsmart spam filters (like inserting random characters and numbers into your content or subject lines or concealing text in an image) or tricking your subscribers by starting the subject line with “Re:” or “Fwd:” to suggest an ongoing communication with you just eats away at your credibility.
Instead, put your efforts into building a quality email list and sending out content that customers want to see pop up in their inbox.
Build Your Own In-House Email List
The permission-based approach is best. Make sure that the recipients of your messages have provided explicit consent to receive your communications through a sign-up or opt-in form. Encourage them to add your email to their address book.
Resist the temptation to purchase an email list or scrape sites for addresses. This is often your message’s one-way ticket to the spam folder. Build your list ethically.
Related: Build an Email List With Your WordPress Website in 3 Simple Steps
Make Unsubscribing Easy
No one wants a dwindling email list, but the reality is this: 50% of consumers branded a company’s email as spam because they couldn’t easily figure out how to unsubscribe to the messages.
Make it easy for your subscribers to part ways; it’ll save you the spam label and leave you with the most invested subscribers — plus, it’s the law!
Don’t Send Lackluster or Irrelevant Content
Consistency is the rule for creating content on your website. This make-it-or-break-it principle is critical for your email communications too. If your blog channels a friendly-neighbor tone, you should have an email voice to match. Keep your messaging consistent, so you don’t give your readers branding whiplash.
Secondly, honor your subscribers’ time. As it has been aptly said, minutes of your customers’ time are like dog years on the internet — woof.
Our digital diets are only programmed for rapid-fire “tastes” of virtual content, so your subscribers’ time reading your content should be well-spent. Honor their minutes by making your emails worth reading. Otherwise, it’s “Email, meet Trash Bin.”
Also, understand that you really only have a few seconds to grab their attention in the first place. Research shows that most people have a group of “trusted advisers” from whom they will almost always open emails — secure this spot and your customers’ attention is yours.
Related: How to Create a Content Marketing Strategy
Using a Reliable Email Service Provider (ESP)
In addition to checking your domain name for blacklisting (you might also hear this referred to as a denylist), you should use a reputable ESP. Need help choosing the right provider? Check here. You could also consider getting third-party accreditation, which can help deliverability.
Understand the Rules
More than just staying clear of boring or unrelated content, you need to be aware of the rules surrounding email marketing and how your content could potentially be violating established spam laws. With most — if not all — email providers, you will need to verify that you are abiding by the law.
CAN-SPAM Act applies to “any electronic mail message the primary purpose of which is the commercial advertisement or promotion of a commercial product or service.” Simply put, all emails must comply. Each email in violation can incur a fee of upwards of $40,000! Gulp.
Here are the must-dos and don’t-even-think-about-its for staying on the right side of the law.
1. Don’t Deceive or Mislead
Your “From,” “To,” “Reply-To,” routing info (the domain name and email address), and subject line must all accurately reflect the correct information, including the business the message is originating from and the content of the message. Be truthful and clear.
2. Identify Ad Content
You must communicate clearly and visibly that your message is an advertisement.
3. Give Your Location
In your email, you must include the physical address of your business (whether that be a street address, P.O. box, or private mailbox you’ve registered under Postal Service regulations).
4. Tell Subscribers How to Opt-Out
It’s not just a good idea to have an easy unsubscribe method. Letting your subscribers know, clearly and conspicuously, how to opt out of future messages is the law. You must give subscribers the choice to stop emails, and you must explain how (by using a clear, contrasting font to distinguish it on your email, by giving a return address to reply to — which should be a human reply-to address — or providing another internet-based way).
Additionally, make certain that your own spam filter does not block opt-requests from subscribers. Another element of the law is honoring these requests swiftly (within 10 business days) and not requiring additional demands from the subscriber, like fees, personal information, or other actions besides visiting a single page or sending a reply email. You cannot transfer or sell the former subscriber’s email address.
5. Understand Your Personal Obligation
Chances are that if you’re reading this, you’re working on improving (or starting) your business’s email marketing strategy. But, on the off chance that you’re merely reading this for fun (totally understandable) and you’ve hired someone else to manage your email marketing, understand that you still possess the legal responsibility to comply with the law. Even if it’s just your product promoted in the email messages, you could be held legally responsible for violations. You can read up on more details here.
6. Keep Your Email List Updated
It’s important to stay connected with your subscribers and keep your email list as up-to-date as possible, as email addresses change often. Hey, that young professional doesn’t want to use their “firstname.lastname@example.org” address forever. A stale list can lead to too many hard bounces (emails rejected for permanent reasons like invalid or inoperable email addresses) and raise your spam score.
7. Think Timing
Sure, your subscribers might not like a lengthy email every day, but sending out a rare email every few months could hurt. When your messages do show up, your readers might not recognize the “From:” designation and send you straight to spam or delete your message quickly, damaging your stats and credibility.
8. Consider Size
If your email content is too large, it could result in a soft bounce, a temporary delivery issue that signifies that your content got as far as your subscriber’s mail server but was then bounced back. Reasons for soft bounces may also include full inboxes or an offline server. The email provider you use should attempt to resend your email over a period of days, but be on the lookout for repeat bounces and remove them from your list. (Read more about bounce rates in the Metrics section below).
9. Be Wary of Inserts
Videos, embedded forms, and attachments aren’t smart things to include in your email messages. Forms and videos often aren’t supported for security and compatibility reasons. Plus, there’s mobile to think about (more than that later). If you have an additional PDF or worksheet you want to share, upload it to your site and provide a link in the email you send out.
10. Test Before You Send
Lastly, it’s smart to use a service like IsNotSpam.com to test your email for possible spam triggers.
And for the record, we’re web hosting experts, so talk with a legit attorney if you really want to get into the minutiae of spam law.
We’ll Support Your Dream
Whatever your online goals, we’ll be right there with you, making sure your site is fast, secure, and always up. Plans start at $2.59/mo.
This isn’t seventh-grade English class, but it’s important to put in the work to make sure your content is error-free and professional. You want your subscribers to trust you and keep returning to read. Get a second pair of eyes and use an editing checklist to help you spot mistakes. Nothing turns off a subscriber more than a misplaced comma or spelling error. Can you say amatuer amateur?
Write Like a Friend
While you still need to be professional, it’s also important to write conversationally and not like a robot. Add personal touches that help show your personality and approachability. Also, use the word “you.” Turns out it’s pretty convincing.
Learn From the Pros
There are a lot of companies out there who are doing email marketing well. Here are a few. Learn from the best and adapt your content to adhere to winning principles and make your emails — dare we say it — fun to read!
Make it Visually Appealing
If your subscribers wanted to slog through dense copy, they’d read a textbook. Remember, they’re “snacking,” so avoid clutter and make it easy for them to find what they’re looking for with text breakups, visual cues, and a clean design.
Related: 10 Web Design Lessons You Can Learn From StarWars.com
Invite Readers to Take Action
Just like a good story needs a good ending, don’t leave your email with a blah finish. Give a clear call-to-action prompt that engages your subscriber to do more. I mean, that’s why you’re sending the email in the first place, right?
Take Your Subject Line Seriously
Subscribers decide whether your emails are worth their time and attention in 0 to 3 seconds. One, two, done. Another scary fact: 70% of emails get flagged as spam based solely on the subject line! So make it enticing and relevant. Again, learn from the pros.
Some important things to keep in mind when writing subject lines:
Personalize, personalize, personalize. The more you can make your message seem tailored to each subscriber, the more they’ll keep reading — and buying.
Rise above clickbait. Readers will quickly ditch if promises are left unfulfilled.
Keep it short and sweet.
Take it easy on punctuation and caps, OKAY?!?!?!
Offer hints at what’s inside — discount, you say? I’m enticed. Bonus points if you can make the reader feel part of an exclusive club or create a sense of urgency to act.
Follow an enticing sub headline with a complementary preheader. If the two play well together, you’ll have committed subscribers that anxiously await your messages.
Many consumers are now reading email exclusively on mobile devices and are pretty picky about how your messages look on their devices: more than 80% of people reported that they will delete an email if it looks wonky on their phones. Yikes.
You know the principles of optimizing your site; here’s how to optimize your messages for mobile.
Make Sure Your Templates Are Mobile-Ready — Regardless of which ESP you use, ensure that your message is formatted for every mobile device. Use readable fonts, a single-column layout, and touch-friendly buttons (mobile screens are small!)
Be Conscious of the Length of Your Subject Line — Too long, and it will get cut off on a mobile screen.
Resize Your Images — Make sure images and text are balanced in relation to each other.
Make Sure Your Links are Mobile — Verify that the pages you link to are also mobile-friendly so subscribers can successfully answer your call to action.
Create a Browser Version —Offer a browser version of the email so readers can open it outside of their email client.
Do a Practice Run — One of the best ways to assure that all content is ready to hit your subscribers’ inboxes is to send yourself a test email. Check all links, images, and subject lines in your own personal inbox.
Related: Here’s Why Responsive Design is a Must for Small Business Owners
6. Gauging Success
You’ve crafted your winning email and sent it out into the interwebs — now what? How can you judge the success or failure of your email marketing campaign? What should you look for? Like any marketing effort, it’s important to analyze your results and improve any needed efforts, but what metrics are most important?
Here is a quick-guide glossary of metrics you should keep an eye on in coordination with your personal goals.
As we mentioned before, bounce rate (both hard and soft) indicates the percentage of total emails that were undeliverable — permanently or temporarily — measured by the total number of bounced emails divided by the number of emails sent. Sometimes this is a server issue, sometimes it’s a spam issue.
This number — the rate at which people remove themselves from your email list — is a good correction tool; it can help you know which emails were causing subscribers to ditch your list and correct those issues in future communications.
The percentage of email subscribers who open a given email. But this can sometimes be misleading, as an “open” is counting as a subscriber who receives the images embedded in a particular message. But it can clue you into what subject lines are most effective, which days your emails are opened, and the average percentage of your email list responding to your messages.
The number of times links in your message are clicked on. This is important for understanding your subscribers’ level of engagement and how they are interacting with you — and acting on your invitations to buy, visit, or give feedback.
Action Over Time
A timeline of engagement with your emails; this stat can assist you in planning when is the best time to send campaigns.
Not all email marketing service providers will provide you this number, but it’s worth thinking about if you can get your hands on it. Before you hit send, it can indicate the likelihood of your message getting slammed by spam filters. A Spam Complaint metric can also be used to correct past errors that caused your subscribers to designate a certain message as spam. Based on these numbers, you can adjust your content format.
It might also be important to keep track of email client data; with this, you can see how successfully or unsuccessfully messages might be appearing on different client types. Also, encourage your subscribers to give you feedback so you can learn and improve your communications the next time around.
Lastly, here are some tools that can help you keep track (if your service provider doesn’t already) and benchmarks that help you see how you stack up in your industry.
The Last Word
Take a breath. Email overload, we get it. You can always bookmark this guide and refer back to it when you’re ready to take the next step in improving your communications with subscribers.
And in case you scrolled all the way down here looking for the TL;DR, we’ve got you covered. Here are the key takeaways for starting your own email marketing program.
Test, Test, Test — Whether it’s spot spelling mistakes or checking for possible spam triggers, test your emails before sending them. It’s an investment worth the extra few minutes.
Keep Your Email List Healthy — A fresh list will help you avoid a lot of issues, including spam and legal concerns, not to mention depressing analytics. Consider running a re-engagement campaign every six months or so to maintain your list.
Be Consistent — Not only in the type of content you share but the frequency in which you send it. Your subscribers will come to know — and trust — you and anticipate your messages.
Focus on Quality — Spend time on both the writing and design of your emails. These elements will not only increase your stats but help build solid relationships with subscribers.
Add a Call-to-Action Button — Make that CTA easy to find and use. You want to turn those readers into customers!
Make It Personal — Send segmented messages to get the most relevant content to each subscriber. Personalized email subject lines are more likely to be opened.
Now, back to that inbox.
Ready to Create an Email Newsletter?
Whether you need help finding a target audience, crafting the ideal social media strategy, or setting up a newsletter, we can help! Subscribe to our monthly digest so you never miss an article.
RE: Your Feedback
How have these email best practices gained you more subscribers or sales? What’s helped you successfully stay out of spam folders? Forward us your ideas (see what we did there?) on Twitter or join our Facebook group for site owners.
Dealing with email issues can be a frustrating experience. Whether you’re not receiving important WordPress notifications or your contact form seems to be acting up, these problems can disrupt your day-to-day business.
Fortunately, there are multiple troubleshooting methods and tools you can use to fix your email issues. Most aren’t overly complicated, and you’ll still be able to decide what email addresses you’ll use to send and receive messages from WordPress.
In this article, we’ll explain some likely reasons WordPress isn’t sending emails. Then we’ll show you how to fix this issue and configure your contact forms so that they properly deliver emails as well. Let’s go!
Need to Fix WordPress Issues? We’ve Got You
Avoid troubleshooting when you partner with DreamHost. Our friendly WordPress experts are available 24/7 to help solve website problems — big or small.
Why You’re Not Receiving Emails From WordPress
By default, WordPress uses the PHP mail() function to send emails. Unfortunately, many hosting servers are not configured to use this function, making it impossible to process those emails.
Another reason emails from your site may not get delivered is unintended side effects from efforts to reduce spam. Most email providers attempt to verify that an email is coming from the address it claims.
However, the address used to send email from your website likely uses spoofing. Without spoofing, an email sent from your website might look like “email@example.com”. Spoofing enables you to change that address to a more reasonable one, such as ‘“firstname.lastname@example.org”.
Unfortunately, spoofing can also serve nefarious purposes, and email providers can’t tell the difference. Therefore, it can sometimes cause your emails to end up in recipients’ spam folders.
Related: How to Choose a Web Hosting Provider — 15-Point Checklist
How to Stop Email From Going to Spam
In addition to spoofing, there are a lot of other reasons why emails might go to spam. Some of the most common possibilities are:
Your IP address is flagged as having been used for spam
You’re using trigger words in your email newsletters
You’re employing poor emailing practices
One way to keep your emails out of the spam bin is to use Simple Mail Transfer Protocol (SMTP) rather than PHP mail(). This protocol is the industry standard and uses proper authentication.
Put simply, emails sent via SMTP have a higher chance of being delivered than those sent using other protocols. You can use a few different methods to set up your WordPress site to send emails via SMTP.
How to Set Up WordPress to Send Emails Via SMTP (2 Ways)
Now that we’ve touched on a few reasons WordPress emails aren’t making it to their intended recipients, let’s look at two ways to fix the problem.
1. Send Email Using Your Hosting Account Address
Using your hosting account email is the simplest way to get your WordPress messages moving as expected. We’ll show you how to set this up, using our own DreamHost web hosting as an example.
Begin by downloading and installing the WP Mail SMTP plugin. From your WordPress dashboard, navigate to WP Mail SMTP > Settings.
There are several fields you’ll need to fill in on this screen. From Email is the address from which you want your emails sent. You’ll also need to check the Force From Email box. The From Name field is the name you’d like the email to come from. You can check the Force From Name box if you’d like.
Finally, select Other SMTP as your mailer. Doing this will cause a Return Path section to appear. Be sure to click on the box in that section as well.
Now you can populate the other SMTP options. We’ll use DreamHost to demonstrate again, but the information should be similar if you use another web host.
First, make sure to toggle on Authentication. For the SMTP Host, use “smtp.dreamhost.com”. When you select TLS encryption, the plugin should auto-populate the SMTP port as “587”.
Next, you can enter your DreamHost email address and password. Finally, click on the Save Settings button, and you should be ready to go. You can try sending a test email to be sure that everything is working properly.
Related: How to Create Your First WordPress Plugin
2. Send Email Using Your Gmail Account
If you prefer, you can use your Gmail address to send mail. Note that while this method also uses the WP Mail SMTP plugin, it’s significantly more complicated. Also, you’ll have to perform these steps again if you ever change your Gmail address.
First, set up a Gmail account to use, if you don’t already have one. Next, download and install the WP Mail SMTP plugin, and navigate to WP Mail SMTP > Settings. You can fill out the fields as described above.
However, when it’s time to select your mailer, choose Gmail.
Please keep this tab handy, as we’ll need to return to it later. For now, you can create a set of secure credentials that will provide your WordPress installation with the required authorization to use Gmail’s servers.
To configure these credentials, head to the Google Developers Console and log in. Create a new project by clicking on Select a project at the top of the screen, followed by New Project in the pop-up that appears.
Give your project whatever name you’d like, and then click on the Create button. Once you do, you’ll be brought to the API Library. Find and click on the Gmail API in the G Suite section.
Select the Enable button. On the next screen, click on Create credentials to open the credentials wizard.
Next, select the Client ID link. You’ll see a pop-up asking you to set up a consent screen. Click on the Set Up Consent Screen button to proceed.
Here, you’ll select whether the application type is internal or external. If you’re not using a G Suite account, you’ll only be able to choose “external.”
You can provide an application name and a contact email address. After you do, scroll down to the Authorized domains section, click on Add domain, and enter your website’s URL.
Finally, enter your email address again under Developer contact information. Click on the Save and Continue button. You can also hit Save and Continue to advance through the next two screens. Since you’re the only one who will ever see this page, you don’t need to worry about populating that information.
When you reach the end of this series of prompts, click on the Back to Dashboard button. Select the Credentials tab on the left, followed by Create Credentials > OAuth Client ID from the drop-down menu.
On the next page, select Web Application from the Application type drop-down menu. You’ll need to return to the WP Mail SMTP settings screen. Copy the Authorized Redirect URL, and paste it into the Authorized Redirect URL field on the Client ID for Web Application page.
When you’re done, click on the Create button. You’ll see a pop-up containing the Client ID and Client Secret. Paste these OAuth credentials into the appropriate fields in the WP Mail SMTP options.
Once you click on the Save Settings button, the page will refresh. Scroll back down to the bottom and click on Allow plugin to send emails using your Gmail account.
Enter your Gmail credentials to finalize the connection. Your SMTP status should now be connected, and you can send a test email to make sure everything is working correctly.
How to Configure Your Contact Forms to Send Email Successfully
If your server is now sending emails correctly, but you are still having problems with your contact forms, the issue could be with a setting in the WordPress form plugin you use. Below, we’ll show you how to troubleshoot some of the most popular tools.
Contact Form 7
If Contact Form 7 isn’t working for you, you likely need to change the address from which emails are sent. Starting from the admin dashboard, navigate to Contact > Contact Forms. Next, click on the contact form you’d like to edit and select the Mail tab.
Ensure that the From field is using your website’s admin email address. Also, verify that the emails in the To and From fields are different. Once you’ve made the necessary changes, click on the Save button.
You can change the settings in WPForms Lite by navigating to WP Forms > All Forms. To open the editor, click on Edit under the form you want to change. Next, select Settings in the left-hand menu, followed by Notifications.
Here, you’ll be able to update the Send To Email Address and From Email fields. Click on the Save button when you’ve made your desired changes.
You’re less likely to run into problems using Jetpack’s contact form, as this plugin doesn’t give you as many configuration options. If there is an issue, it probably stems from having the same email address set as both To and From.
You can correct this by making one simple change. After you’ve added the form using the block, click on the pencil icon to edit the form options.
You can change the email address your form responses send to on this screen. Note that you won’t be able to change the address that forms are sent from, as Jetpack uses your website’s admin email for this.
Take Your WordPress Site to the Next Level
Whether you need help with plugin settings, transactional emails, or smtp authentication, we can help! Subscribe to our monthly digest so you never miss an article.
Ready to Fix the WordPress Not Sending Email Issue?
There are few things as irritating as having to dig through your spam folder to look for a missing email. However, once you’ve fixed this common WordPress issue, your website’s emails should safely find their way to their intended destinations.
In this piece, we showed you how to leverage the WP Mail SMTP plugin, and use either your hosting or Gmail account to send emails. Once you’ve handled that task, you can move on to configuring the options in your contact form plugin, to ensure that those emails properly send as well.
If you’d like to make your experience with WordPress emails easier, you might want to consider checking out DreamPress, our managed hosting plan. You’ll have access to our premium support 24/7 to help you with any problems you may run into on your site!