WordPress plugin to send emails using Amazon's Simple Email Service.
- Clone or download the repository in your project's plugins folder
git clone https://github.com/coloredcow/sespress.git
- Install dependencies via composer install
cd wp-content/plugins/sespress
composer install
- Activate SesPress plugin from the WordPress Admin Dashboard
- Once activated, go to menu
Settings > SesPress
. Enter your AWS key ID, secret key and region to confirm credentials.
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' => '[email protected]',
],
[
'name' => 'Jane Doe',
'email' => '[email protected]',
],
],
'sender' => [
'name' => 'Admin',
'email' => '[email protected]',
],
'message' => [
'html' => '<h2>Test message embedded in HTML tags.</h2>',
]
];
$sespress = new SesPress;
$result = $sespress->send( $args );
wp_die( $result['data'] );
}