1. Go to this page and download the library: Download okamos/php-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/ */
okamos / php-ses example snippets
<php?
$ses = new SimpleEmailService(
'AKI...', // your AWS access key id
'your_secret...', // your AWS secret access key
'us-west-2' // AWS region, default is us-east-1
);
// if you can't use verification of SSL certificate
$ses = new SimpleEmailService(
'AKI...', // your AWS access key id
'your_secret...', // your AWS secret access key
'us-west-2' // AWS region, default is us-east-1
);
// method name's first character is must be lower case
$identities = $ses->listIdentities(); // string[]
// List all identities your domains.
$identities = $ses->ListIdentities('Domain');
// List all identities your email addresses.
$identities = $ses->ListIdentities('EmailAddress');
$identities[0]; // [email protected]