Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coloredcow/sespress
WordPress plugin to use AWS Simple Email Service
https://github.com/coloredcow/sespress
aws aws-ses wordpress wordpress-plugin
Last synced: 5 days ago
JSON representation
WordPress plugin to use AWS Simple Email Service
- Host: GitHub
- URL: https://github.com/coloredcow/sespress
- Owner: ColoredCow
- License: gpl-3.0
- Created: 2017-12-30T10:25:52.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T18:43:50.000Z (over 1 year ago)
- Last Synced: 2024-05-11T20:41:09.053Z (8 months ago)
- Topics: aws, aws-ses, wordpress, wordpress-plugin
- Language: PHP
- Size: 59.6 KB
- Stars: 9
- Watchers: 4
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
![sespress-min](https://user-images.githubusercontent.com/12053186/37273426-d000bde4-25ff-11e8-954e-b2be52a83fb0.png)
## 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
```sh
git clone https://github.com/coloredcow/sespress.git
```
2. Install dependencies via composer install
```sh
cd wp-content/plugins/sespress
composer install
```
3. Activate SesPress plugin from the WordPress Admin Dashboard
4. 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.
```php
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' => 'Test message embedded in HTML tags.
',
]
];
$sespress = new SesPress;
$result = $sespress->send( $args );
wp_die( $result['data'] );
}
```