2017 © Pedro Peláez
 

symfony-bundle aws-ses-bundle

A bundle that embed the php library `php-aws-ses` from daniel-zaharie into Symfony 2

image

idci/aws-ses-bundle

A bundle that embed the php library `php-aws-ses` from daniel-zaharie into Symfony 2

  • Wednesday, June 8, 2016
  • by idciconsulting
  • Repository
  • 3 Watchers
  • 0 Stars
  • 1,253 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 3 % Grown

The README.md

AwsSesBundle

This bundle simply integrate the daniel-zahariev/php-aws-ses library into Symfony. See https://github.com/daniel-zahariev/php-aws-ses., (*1)

Installation

To install this library please follow the next steps:, (*2)

First add the dependency:, (*3)

composer require idci/aws-ses-bundle

Enable the bundle in your application kernel:, (*4)

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new IDCI\Bundle\AwsSesBundle\AwsSesBundle(),
    );
}

Add the configuration in the config.yml file:, (*5)

aws_ses:
    access_key: %aws_ses_access_key%
    secret_key: %aws_ses_secret_key%
    region_endpoint: %aws_ses_region_endpoint%

then update your parameters.yml file :, (*6)

aws_ses_access_key: ACCESS_KEY
aws_ses_secret_key: SECRET_KEY
aws_ses_region_endpoint: email.us-east-1.amazonaws.com

Now the library is installed., (*7)

Usage

This example should be enough, (*8)

use SimpleEmailServiceMessage;

$mailer = $this->getContainer()->get('aws_ses');
$message = new SimpleEmailServiceMessage();
$message
    ->setFrom('no-reply@user.fr')
    ->addTo('user@gmail.com')
    ->setSubject('Hello, world!')
    ->setMessageFromString('This is the message body.')
;
print_r($mailer->sendEmail($message));

// Successful response should print something similar to:
// Array(
//     [MessageId] => 0000012dc5e4b4c0-b2c566ad-dcd0-4d23-bea5-f40da774033c-000000
//     [RequestId] => 4953a96e-29d4-11e0-8907-21df9ed6ffe3
// )

See the daniel-zahariev/php-aws-ses library for more information., (*9)

The Versions

08/06 2016

dev-master

9999999-dev

A bundle that embed the php library `php-aws-ses` from daniel-zaharie into Symfony 2

  Sources   Download

MIT

The Requires

 

mail amazon ses

22/03 2016

v1.0.0

1.0.0.0

A bundle that embed the php library `php-aws-ses` from daniel-zaharie into Symfony 2

  Sources   Download

MIT

The Requires

 

mail amazon ses