Skip to content
WordPress plugin to use AWS Simple Email Service
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
admin improvements Jan 8, 2018
classes improvements Jan 8, 2018
.gitignore gitignore updated Jan 5, 2018
LICENSE Initial commit Dec 30, 2017
composer.json initial commit Dec 30, 2017
composer.lock initial commit Dec 30, 2017
index.php WP checks Jan 8, 2018
readme.md Update readme.md Mar 12, 2018
sespress.php improvements Jan 8, 2018
uninstall.php WP checks Jan 8, 2018

readme.md

sespress-min

About

WordPress plugin to send emails using Amazon's Simple Email Service.

Installation

  1. Clone or download the repository in your project's plugins folder
git clone https://github.com/coloredcow/sespress.git
  1. Install dependencies via composer install
cd wp-content/plugins/sespress
composer install
  1. Activate SesPress plugin from the WordPress Admin Dashboard
  2. Once activated, go to menu Settings > SesPress. Enter your AWS key ID, secret key and region to confirm credentials.

Usage

Add the following snippet at the end of your active theme's functions.php. Change the recipients and sender name and email accordingly.

Note: This will change your site's behavior.

add_action( 'wp', 'sespress_send_sample' );
function sespress_send_sample() {

    $args = [
        'subject' => 'Welcome to SesPress',
        'recipients' => [
            [
                'name' => 'John Doe',
                'email' => 'johndoe@example.com',
            ],
            [
                'name' => 'Jane Doe',
                'email' => 'janedoe@example.com',
            ],
        ],
        'sender' => [
            'name' => 'Admin',
            'email' => 'admin@mysite.com',
        ],
        'message' => [
            'html' => '<h2>Test message embedded in HTML tags.</h2>',
        ]
    ];
    $sespress = new SesPress;
    $result = $sespress->send( $args );
    wp_die( $result['data'] );
}
You can’t perform that action at this time.