• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Receive Email From WordPress Using Mandrill

By Abhishek Ghosh May 24, 2015 9:43 am Updated on February 27, 2016

Receive Email From WordPress Using Mandrill

Advertisement

For Servers With HSTS, Servers With Router Like on HP Cloud, You Can Easily Receive Email From WordPress Using Mandrill Instead of Postfix. At TheCustomizeWindows, we use Mandrill to handle the Emails instead of very difficult server side setup (due to HSTS). Mandrill is a Cloud Based Transactional Email Service, it normally does require another Email service – like we use Google Apps for our Email Services. admin@thecustomizewindows.com, webmaster@thecustomizewindows.com are configured for Google Apps in Desktop Email Clients. You can read an old guide for SMTP POP3 settings.

 

Receive Email From WordPress Using Mandrill : Free Signup & Mandrill Settings For DNS

 

First signup for Mandrill, you will get 12K Email transactions free of cost. Practically lifetime can be spend with the free tier if you are using for contact form only. Mandrill has a WordPress Plugin, we will not use it. We will add simple few lines of snippets only.

First add your domain on Mandrill, second add forwarding email address. Now, you have to add one TXT entry on your DNS (you might be using Akamai or CloudFlare or HP Cloud or Rackspace DNS or DynDNS or Amazon R3) which will be given on Mandrill account. Very easy. It will look like this :

Advertisement

---

Vim
1
v=DKIM1; k=rsa; p=MIG   AB;

This is called DKIM settings and can be found under Domains > Sending Domains on Mandrill account, you have to add this against a subdomain named mandrill._domainkey.yourdomain.tld with a TTL of 300s. Another entry needs to be edited on DNS, that is Sender Policy Framework (SPF). You will have an entry if you are already using Google Apps like 100% common Email Service for your domain, which is a TXT record and looks like :

Vim
1
v=spf1 ip4 ... ~all

Only add include:emailsrvr.com on this record in proper place. Test the DNS settings from Mandrill account, you should be passed. Mandrill will ask to verify your email. Easy thing.

Receive Email From WordPress Using Mandrill

 

Receive Email From WordPress Using Mandrill : WordPress Part

 

Hummmm. You do not need any WordPress Plugin. You will see that, many websites ask to add snippets on Theme or Child Theme’sfunctions.php file. We wrote an easy guide on how to create a simple plugin to manage all these snippets in one place as one plugin.

Wherever, in whatever method you add this snippet does not matter (on Theme or Child Theme’s functions.php file or Plugin), it will work :

Vim
1
2
3
4
5
6
7
8
9
add_action( 'phpmailer_init', 'wph_phpmailer_init' );
function wph_phpmailer_init( PHPMailer $phpmailer ) {
$phpmailer->IsSMTP();
$phpmailer->SMTPAuth = true;
$phpmailer->Port = 587;
$phpmailer->Host = 'smtp.mandrillapp.com';
$phpmailer->Username = 'MANDRILL_USERNAME'; // change it
$phpmailer->Password = 'MANDRILL_API_KEY'; // generate your own and change it.
}

Copy-Paste the snippet on any text editor first. If you had postfix or sendmail on your Ubuntu server installed, you can remove it :

Vim
1
apt-get purge postfix sendmail

These are not needed anymore.

Tagged With mandrill
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Receive Email From WordPress Using Mandrill

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

  • How to Add DMARC, DKIM, SFP to Avoid Email Spoofing

    Commonly, Transactional Email Services Like Mandrill is used With Google Apps. Here is How to Add DMARC, DKIM, SFP to Avoid Email Spoofing.

  • Mandrill Account Poor Reputation : Untold Story to Fix!

    Mandrill is a Cloud Based Transactional Email Service. It is Common to Get Email Warning on Mandrill Account Poor Reputation. Here is Why.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy