SesPress – Our first open sourced WordPress plugin
Vaibhav Rathore
January 11, 2018

This time we’ve covered another milestone. After all the effort made by the team to reduce our overall emailing cost and build a custom WordPress functionality, we’re happy to release it to the public as a WordPress plugin titled SesPress.

 

This is one of the first open source projects that we’re planning to maintain long-term and add more features to the platform. We’ll be maintaining the source code, plugin versions, features and pull requests at the official Github repository for SesPress. This is our first contribution towards the WordPress community (never been this excited before). You can directly download the plugin from the official WordPress plugin repository or just search for SesPress from your project’s plugin dashboard.

 

How we made it possible?

The primary factor that made us develop this plugin was the cost. We are a cost conservative organization and try to minimize our expenses wherever possible (until it kills the fun). Our Mandrill expenses were skyrocketing and we needed an immediate solution. After a lot of market research, we couldn’t find anything that can solve our purpose and can be cost efficient also, we built SesPress.

Read here to know more about how SesPress was born.

 

The story with the name

As expected, we had multiple prolonged discussions over the plugin’s name. Everybody threw ideas. WP SES, SES for WordPress, SES made easy, SES4U, SES WP Mail, Mail from SES and so on. Some were good, some were exactly opposite (I feel I was on the first side most of the times). Some names were already taken and some didn’t look good as a brand. After multiple rejections, we finalized SesPress as it represents both the underlying frameworks: WordPress and Amazon SES and was also looking clean.

 

Getting started

The first step is to download the zip from Github. Extract and add it to the plugins folder of your WordPress project. Next, activate the plugin from WordPress Admin Dashboard and then go to Settings->SesPress to save your AWS credentials. Then you can add the following lines of code to send a simple email using the plugin:

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'] );
}

For more details and usage documentation, please go through the Github Readme.

 

SesPress v0.1

We’re currently up with the first stable release v0.1. This version includes:

  • Accessing SesPress plugin from WP Menu -> Settings -> SesPress
  • Ability to enter SES credentials required
  • Support to enable/disable the mail functionality
  • Ability to add a default sender
  • Test mode to override recipients with a test mode recipient at the time of testing
  • Ability to send mail templates with dynamic data

For more information on how to use these functionalities visit: https://github.com/coloredcow/sespress

 

What’s coming in SesPress v1.0

Gear up for the features in the first major release.

  • Verify SES credentials at the time of configuration setup and ability to send test functionality from the dashboard
  • Support for attachments
  • Better user interface for better usability
  • Ability to define scheduled emails
  • Reporting and Analytics dashboard