PHP code example of magroski / simple-ses

1. Go to this page and download the library: Download magroski/simple-ses library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

magroski / simple-ses example snippets


$config = new Config('access_key', 'secret_key', 'ue-east-1');

$client = new Client($config);

# Single Recipient
$client->send('Subject', 'Body', '[email protected]');

# Multiple Recipients
$client->send('Subject', 'Body', ['[email protected]', '[email protected]']);

# Text instead of html
$client->send('Subject', 'Body', '[email protected]', true);