SendGrid

SendGrid's cloud-based email infrastructure relieves businesses of the cost and complexity of maintaining custom email systems. SendGrid provides reliable delivery, scalability and real-time analytics along with flexible APIs that make custom integration a breeze.

The SendGrid plugin uses SMTP or API integration to send outgoing emails from your WordPress installation. It replaces the wp_mail function included with WordPress.

First, you need to have PHP-curl extension enabled. To send emails through SMTP you need to install also the 'Swift Mailer' plugin.

To have the SendGrid plugin running after you have activated it, go to the plugin's settings page and set the SendGrid credentials, and how your email will be sent - either through SMTP or API.

You can also set default values for the "Name", "Sending Address" and the "Reply Address", so that you don't need to set these headers every time you want to send an email from your application.

Emails are tracked and automatically tagged for statistics within the SendGrid Dashboard. You can also add general tags to every email sent, as well as particular tags based on selected emails defined by your requirements.

There are a couple levels of integration between your WordPress installation and the SendGrid plugin:

  • The simplest option is to Install it, Configure it, and the SendGrid plugin for WordPress will start sending your emails through SendGrid.
  • We amended wp_mail() function so all email sends from WordPress should go through SendGrid. The wp_mail function is sending text emails as default, but you have an option of sending an email with HTML content.

How to use wp_mail() function:

We amended wp_mail() function so all email sends from WordPress should go through SendGrid.

You can send emails using the following function: wp_mail($to, $subject, $message, $headers = '', $attachments = array())

Where:

  • $to - Array or comma-separated list of email addresses to send message.
  • $subject - Email subject
  • $message - Message contents
  • $headers - Array or "\n" separated list of additional headers. Optional.
  • $attachments - Array or "\n"/"," separated list of files to attach. Optional.

The wp_mail function is sending text emails as default. If you want to send an email with HTML content you have to set the content type to 'text/html' running add_filter('wp_mail_content_type', 'set_html_content_type'); function before to wp_mail() one.

After wp_mail function you need to run the remove_filter('wp_mail_content_type', 'set_html_content_type'); to remove the 'text/html' filter to avoid conflicts --http://core.trac.wordpress.org/ticket/23578

Example about how to send an HTML email using different headers:

$subject = 'test plugin';
$message = 'testing WordPress plugin';
$to = 'address1@sendgrid.com, Address2 <address2@sendgrid.com@>, address3@sendgrid.com';
or
$to = array('address1@sendgrid.com', 'Address2 <address2@sendgrid.com>', 'address3@sendgrid.com');
 
$headers = array();
$headers[] = 'From: Me Myself <me@example.net>';
$headers[] = 'Cc: address4@sendgrid.com';
$headers[] = 'Bcc: address5@sendgrid.com';
$headers[] = 'unique-args:customer=mycustomer;location=mylocation'
 
$attachments = array('/tmp/img1.jpg', '/tmp/img2.jpg');
 
add_filter('wp_mail_content_type', 'set_html_content_type');
$mail = wp_mail($to, $subject, $message, $headers, $attachments);
 
remove_filter('wp_mail_content_type', 'set_html_content_type');

Pepipost

Pepipost is built on the philosophy to encourage good senders and to keep the email eco-system clean. 85% of today's email is Spam and we don't want to add up to that. We have carried up that philosophy into the pricing model where we don't charge for the emails which are being opened by the custom.........

Similar: 95%

Sakshamapp ES email system for transaction email

From wordpress we need to send many transactional emails like User registration. Forget password User registeration notification and yes when we use advance plugins it send all notification by email to admin In woocommerce we need to send email to buyers customers for their orders And order stat.........

Similar: 86%

SparkPost

The SparkPost email delivery service offers best in class deliverability to ensure your mail hits the inbox, live analytics to review, track and optimize your email activities, as well as highest performance when you need it most: always. When the SparkPost plugin is enabled, all outgoing email fro.........

Similar: 80%

wpMandrill

This plugin uses Mandrill API to send outgoing emails, with or without attachments, from your WordPress installation. It replaces the wp_mail function included with WordPress. Emails are tracked and automatically tagged for statistics within the Mandrill Dashboard. You can also add general tags to .........

Similar: 70%

Caldera SMTP Mailer

Caldera SMTP Mailer is not groundbreaking in any way. There are many SMTP plugins around some good some not so good. This is just to take away all the mystery with a to-the-point solution for configuring wp_mail ( and in turn phpmailer ) to send through SMTP over standard phpmail....

Similar: 63%

WP SES

WP-SES redirects All outgoing WordPress emails through Amazon Simple Email Service (SES) instead of local wp_mail function. This ensures high email delivrability, email trafic statistics and a powerful managed infrastructure. This plugin is functionnal and I use it on several websites. WPMU feature.........

Similar: 34%

Xmail - The Right Way

All webmasters experience the problem of their emails landing in their users spam folders, including our own! So we decided to develop a simple solution to fix this wide-spread annoyance. After a long development period, we have produced an effective method of sending emails which complies in ful.........

Similar: 34%

SendPress For WooCommerce

SendPress is a newsletter plugin for WordPress that allows to create and send newsletters. With SendPress for WooCommerce you can collect subscribers right from your store. This plugin requires both SendPress and WooCommerce. Features of the SendPress include: Simple editor. With an html-free exp.........

Similar: 27%

Easy WP SMTP

Easy WP SMTP allows you to configure and send all outgoing emails via a SMTP server. This will prevent your emails from going into the junk/spam folder of the recipients....

Similar: 24%

Saksh WP SMTP

Saksh WP SMTP can help us to integrate SMTP to your wordpress installation. Using this you can integrate a number of free smtp server like gmail , yahoo mail , rediff mail , hotmail and paid smtp like email-marketing247, sendgrid , amazon aes , mandrill, zoho mail etc to your wordpress and send emai.........

Similar: 21%