-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f674a8b
commit 8bd163e
Showing
1 changed file
with
26 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SesPress | ||
|
||
WordPress plugin to send emails from Amazon's Simple Email Service. | ||
WordPress plugin to send emails using Amazon's Simple Email Service. | ||
|
||
## Installation | ||
|
||
|
@@ -13,9 +13,8 @@ git clone https://github.com/coloredcow/sespress.git | |
cd wp-content/plugins/sespress | ||
composer install | ||
``` | ||
2. Enable plugin from the WordPress Admin Dashboard | ||
3. Go to menu `Settings > SesPress` | ||
4. Enter your AWS key ID, secret key and region to confirm credentials. | ||
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 | ||
|
||
|
@@ -27,24 +26,28 @@ Add the following snippet at the end of your active theme's `functions.php`. Cha | |
add_action( 'wp', 'sespress_send_sample' ); | ||
function sespress_send_sample() { | ||
|
||
$args = [ | ||
'subject' => 'Welcome to SesPress', | ||
'recipients' => [ | ||
[ | ||
'name' => 'Your Name', | ||
'email' => '[email protected]', | ||
] | ||
], | ||
'sender' => [ | ||
'name' => 'Admin', | ||
'email' => '[email protected]', | ||
], | ||
'message' => [ | ||
'html' => '<h2>Some test message embedded in HTML tags.</h2>', | ||
] | ||
]; | ||
$sespress = new SesPress; | ||
$result = $sespress->send( $args ); | ||
wp_die( $result['data'] ); | ||
$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'] ); | ||
} | ||
``` |