• 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

This Article Has Been Shared 837 Times!

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

  • Hybrid Cloud Computing in Depth

    Hybrid Cloud Computing combines a traditional data center with which the private cloud with scalable cloud services combine to form a public cloud.

  • Service Oriented Architecture (SOA) : Detail Article

    Service Oriented Architecture or SOA is an architectural pattern of IT which plays a special role on business processes, where levels of abstraction are basis.

  • Security Risks of Virtualization in Data Center

    Security risks of Virtualization in the Data Center are with applications and operating systems to Weakness of security personnel. Its multi factorial.

  • Protection of Data by Data Loss Prevention and Encryption

    Protection of Data by data loss prevention and encryption is a key element in a cloud environment.This applies to data stored on a server and transport of data.

  • What is Important in Single Sign-On Solutions

    Single Sign-On (SSO) can unify the access control, even for the mobile apps, cloud computing Platforms and social networks. But what we must know about SSO?

Additionally, 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

  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023
  • What is Vehicular Ad-Hoc Network? January 24, 2023
  • Difference Between Panel Light, COB Light, Track Light January 21, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Receive Email From WordPress Using Mandrill," in The Customize Windows, May 24, 2015, January 28, 2023, https://thecustomizewindows.com/2015/05/receive-email-from-wordpress-using-mandrill/.

Source:The Customize Windows, JiMA.in

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT