PHP code example of jplarar / ses-bundle

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/ */

    

jplarar / ses-bundle example snippets

 bash
$ php composer.phar update "jplarar/ses-bundle"
 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");