1. Go to this page and download the library: Download jplarar/ses-bundle 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/ */
php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Jplarar\SESBundle\JplararSESBundle()
);
}
php
$sesClient = $this->get('amazon_ses_client');
php
$result = $sesClient->sendEmail(
'[email protected]',
'subject',
'[email protected]',
'<h1>AWS Amazon Simple Email Service Test Email</h1>',
'This email was send with Amazon SES using the AWS SDK for Symfony.'
);
$messageId = $result->get('MessageId');
echo("Email sent! Message ID: $messageId"."\n");
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.