WordPress.org

Plugin Directory

WP SES

WP-SES redirects all outgoing WordPress emails through Amazon Simple Email Service (SES) for maximum email deliverability.

Where can I find support for the plugin ?

Please use our main website http://wp-ses.com/faq.html for all support related questions.

What are the pre-requisites ?

  • A WP3+ Self hosted WordPress Blog
  • PHP5 and Curl PHP extension
  • An Amazon Web Service account
  • Validate your SES service

Can you help me about... (an Amazon concern)

We are not otherwise linked to Amazon or Amazon Services. Please direct your specific Amazon questions to the Amazon support.

How to setup default values for a WPMU install ?

Please, DO test your setting without this. Then, when all works as expected, fill in the config file.

Edit the wp-config.php file, and add what you want to define. Here is a complete setup, some defines are optional.

// WP-SES defines

// Amazon Access Key
define('WP_SES_ACCESS_KEY','blablablakey');

// Amazon Secret Key
define('WP_SES_SECRET_KEY','blablablasecret');

// From mail (optional) must be an amazon SES validated email
// hard coded email, leave empty or comment out to allow custom setting via panel
define('WP_SES_FROM','me@....');

// Return path for bounced emails (optional)
// hard coded email, leave empty or comment out to allow custom setting via panel
define('WP_SES_RETURNPATH','return@....');

// ReplyTo (optional) - This will get the replies from the recipients.
// hard coded email, or 'headers' for using the 'replyto' from the headers.
// Leave empty or comment out to allow custom setting via panel
define('WP_SES_REPLYTO','headers');

// Hide list of verified emails (optional)
define('WP_SES_HIDE_VERIFIED',true);

// Hide SES Stats panel (optional)
define('WP_SES_HIDE_STATS',true);

// Auto activate the plugin for all sites (optional)
define('WP_SES_AUTOACTIVATE',true);

When using defines to hardcode your setting, don't forget to define the SES endpoints, too :

define('WP_SES_ENDPOINT', 'email.us-east-1.amazonaws.com');
OR
define('WP_SES_ENDPOINT', 'email.us-west-2.amazonaws.com');
OR
define('WP_SES_ENDPOINT', 'email.eu-west-1.amazonaws.com');

How to do other actions on mail sent ?

I was asked to add a hook once mail is sent. Could be used to log emails, or post email info to an API or database.

wpses_mailsent hook is available for that use.

In your code, define a callback function :

function myMailSentHook($to, $subject, $message, $headers, $attachments ) { ... } // params are the same as the wp_mail() function.

// Then add your action : add_action('wpses_mailsent','myMailSentHook',10,5);

Requires: 3.0.0 or higher
Compatible up to: 4.4.3
Last Updated: 2 months ago
Active Installs: 5,000+

Ratings

4.4 out of 5 stars

Support

4 of 10 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1
100,1,1 100,1,1
100,1,1 100,1,1
100,1,1 100,1,1
100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
0,1,0
100,2,2
100,1,1
100,1,1 100,1,1
100,1,1 50,2,1
100,1,1 100,1,1
100,1,1 100,1,1
100,1,1 100,1,1
100,1,1
100,1,1 100,1,1
100,2,2 100,1,1 100,1,1
100,1,1 50,2,1
100,1,1
100,1,1
100,1,1 100,1,1
100,1,1 100,1,1
100,2,2 100,1,1 100,1,1