PHP code example of badams / symfony-mailer-amazon-sdk
1. Go to this page and download the library: Download badams/symfony-mailer-amazon-sdk 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/ */
badams / symfony-mailer-amazon-sdk example snippets
use Badams\AmazonMailerSdk;
$factory = new Symfony\Component\Mailer\Transport([
new SesSdkTransportFactory()
]);
$transport = $factory->fromString('ses+sdk://ap-south-2?credentials=env');
$mailer = new \Symfony\Component\Mailer\Mailer($transport);
$mailer->send($email);
ses+sdk://eu-west1?ConfigurationSetName=MyConfigurationSet