Templatic make awesome WordPress Themes. Many of their Themes are app-like Themes; this means that the Themes have specific functionality so that the Theme may be used for a very specific purpose. The most widely used Theme by Templatic is the very popular Directory Theme.
The Directory Theme allows a simple means of creating a website where visitors to the website may add their listings for a fee. Directory websites are popular and generally do well in Search Engine rankings (i.e. they’re good for SEO). All sorts of business and communities use directories extensively; for example business parks benefit from listing businesses in the park and sports club directories may list all sports clubs in a certain area.
As directory websites are often very popular and have thousands of listings (where visitors are able to add their own listings by paying a fee Online), it’s very important that email from the website works reliably. Emails are sent from the website to people adding a listing, when subscriptions require renewal and if a listing visitor wants to contact the business on the listing so tens (or hundreds) of emails may be sent from the website daily. If you’re using shared hosting then it won’t take long for your emails to be deemed spam. Even if you’re using dedicated (VPS) hosting then there are also likely to be issues with people receiving emails sent from the webserver.
WordPress not sending email? Try this
A rock-solid solution to ensure very reliable sending of email from WordPress is by using Mandrill (by the awesome team behind Mailchimp). It’s simple to bypass the usual means of sending email via WordPress or your Webserver (wp_mail or the PHP mail() function ) by using Mandrill to send emails from your Website. Using WordPress this is usually as simple as signing up for a Mandrill account and activating and setting up the wpMandrill plugin. But, for whatever reason, when activating the wpMandrill plugin when the Templatic Directory Theme and Tevolution plugin are active the following error is returned
Mandrill: wp_mail has been declared by another process or plugin, so you won’t be able to use Mandrill until the problem is solved.
Reliable email sending with the Templatic Directory Theme
Luckily there is another means of having Mandrill send emails from our WordPress website and that is by configuring emails to be sent using SMTP. Here are the steps involved in using Mandrill to send emails even when the nasty wp_mail has been declared error appears.
- Disable the wpMandrill plugin.
- Install and activate the WP Mail SMTP plugin.
- Setup a Mandrill account if you haven’t done so.
- In your WordPress Website go to Settings -> Email.
- Fill fields as follows:
- From Email: Leave blank
- From Name: Enter your/any name
- Mailer: Select Send all WordPress emails via SMTP.
- Return Path: Check Set the return-path to match the From Email
- SMTP Host: Enter smtp.mandrillapp.com
- SMTP Port: Enter 465
- Encryption: Select Use SSL encryption.
- Authentication: Select Yes: Use SMTP authentication.
- Username: Get this from Mandrill SMTP & API Credentials
- Password: Get this from Mandrill SMTP & API Credentials
- Click Save Changes
- Send yourself a test email to see that all is working o.k.
Your emails should be sending fine now. Just remember to setup Mandrill DKIM and SPF records on your domain for even more reliable email delivery.