SES for WordPress

SES for WordPress Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 1,123 downloads
SES for WordPress Icon

Try plugin: SES for WordPress

We'll create fresh WordPress site with SES for WordPress installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About SES for WordPress

Use Amazon SES to send emails with embedded images and arbitrary headers.

0


0


0


0


0

updated: 11 years ago
since: 11 years ago
author: Duncan Brown

Description

SES for WordPress

Introduction

This plugin provides support for AWS’s Simple Email Service for your WP site. It supports arbitrary custom headers and handles image embedding for you. It sends HTML messages with an automatically-generated plain-text counterpart.

By default, it overrides the native wp_mail function, so all you need to do is configure your AWS Keys and sender in Settings > SES4WP Options.

Components

  1. PEAR Mime_mail to create the message
  2. Jevon Wright’s html2text for the plain-text part
  3. AWS SDK v1.5

Embedding images

Before your call to wp_mail(), call ses4wp_embed_image with an image handle and the path to your image. It will return a content_id for you to use in your src attribute.

Paths should be given relative to your webserver root. So for instance, to embed wp-content/themes/twentyeleven/images/wordpress.png, you would omit the slash at the beginning.

eg

$content_id = ses4wp_embed_image( 'my_image', 'wp-content/path/to/image.jpg' );
$mail_body = "This is an image. <img src='cid:$content_id' />";
wp_mail( '[email protected]', 'My Subject', $mail_body );

The image will be attached to the email and delivered inline.