2017 © Pedro Peláez
 

yii2-extension yii2-yashop-ses

Extension for sending emails via amazon ses

image

prasanth-gandiva/yii2-yashop-ses

Extension for sending emails via amazon ses

  • Wednesday, April 27, 2016
  • by prasanth
  • Repository
  • 1 Watchers
  • 2 Stars
  • 2,106 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 13 Forks
  • 0 Open issues
  • 4 Versions
  • 17 % Grown

The README.md

Amazon ses extension for Yii2 with Attachment File URL

Extension for sending emails via amazon ses. Part of YaShop, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist prasanth-gandiva/yii2-yashop-ses "*"

or add, (*4)

"prasanth-gandiva/yii2-yashop-ses": "*"

to the require section of your composer.json file., (*5)

Usage

To use this extension, you should configure it in the application configuration like the following:, (*6)

'components' => [
    ...
    'mail' => [
        'class' => 'yashop\ses\Mailer',
        'access_key' => 'Your access key',
        'secret_key' => 'Your secret key',
        'host' => 'email.us-east-1.amazonaws.com' // not required
    ],
    ...
],

To send an email, you may use the following code:, (*7)

Yii::$app->mail->compose('contact/html', ['contactForm' => $form])
    ->setFrom('from@domain.com')
    ->setTo($form->email)
    ->setSubject($form->subject)
    ->send();

To send an email with attachment file url, you may use the following code:, (*8)

$file = "www.example.com/file/demo.csv";
Yii::$app->mail->compose('contact/html', ['contactForm' => $form])
    ->setFrom('from@domain.com')
    ->setTo($form->email)
    ->setSubject($form->subject)
    ->attach($file)
    ->send();

The Versions

27/04 2016

dev-master

9999999-dev

Extension for sending emails via amazon ses

  Sources   Download

MIT

The Requires

 

by Prasanth Gandiva

extension yii2 aws ses

26/04 2016

v1.0.2

1.0.2.0

Extension for sending emails via amazon ses

  Sources   Download

MIT

The Requires

 

by Prasanth Gandiva

extension yii2 aws ses

08/03 2015

v1.0.1

1.0.1.0

Extension for sending emails via amazon ses

  Sources   Download

MIT

The Requires

 

by Vitaliy Ofat

extension yii2 aws ses

02/05 2014

v1.0.0

1.0.0.0

Extension for sending emails via amazon ses

  Sources   Download

MIT

The Requires

 

by Vitaliy Ofat

extension yii2 aws ses