2017 © Pedro Peláez
 

yii2-extension yii2-swiftmailer

The SwiftMailer integration for the Yii framework

image

yiisoft/yii2-swiftmailer

The SwiftMailer integration for the Yii framework

  • Monday, July 23, 2018
  • by cebe
  • Repository
  • 23 Watchers
  • 75 Stars
  • 4,064,781 Installations
  • PHP
  • 649 Dependents
  • 2 Suggesters
  • 48 Forks
  • 2 Open issues
  • 16 Versions
  • 8 % Grown

The README.md

, (*1)

SwiftMailer Extension for Yii 2


This extension provides a SwiftMailer mail solution for Yii framework 2.0., (*2)

For license information check the LICENSE-file., (*3)

Latest Stable Version Total Downloads Build Status, (*4)

Installation

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

Either run, (*6)

php composer.phar require --prefer-dist yiisoft/yii2-swiftmailer

or add, (*7)

"yiisoft/yii2-swiftmailer": "~2.1.0"

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

Note: Version 2.1 of this extensions uses Swiftmailer 6, which requires PHP 7. If you are using PHP 5, you have to use version 2.0 of this extension, which uses Swiftmailer 5, which is compatible with PHP 5.4 and higher. Use the following version constraint in that case:, (*9)

"yiisoft/yii2-swiftmailer": "~2.0.0"
  

Usage

To use this extension, simply add the following code in your application configuration:, (*10)

return [
    //....
    'components' => [
        'mailer' => [
            'class' => 'yii\swiftmailer\Mailer',
        ],
    ],
];

You can then send an email as follows:, (*11)

Yii::$app->mailer->compose('contact/html')
     ->setFrom('from@domain.com')
     ->setTo($form->email)
     ->setSubject($form->subject)
     ->send();

For further instructions refer to the related section in the Yii Definitive Guide., (*12)

The Versions

23/07 2018

dev-sol

dev-sol

The SwiftMailer integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Paul Klimov

mail email yii2 swiftmailer mailer swift

12/06 2018

2.2.x-dev

2.2.9999999.9999999-dev

The SwiftMailer integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Paul Klimov

mail email yii2 swiftmailer mailer swift

27/04 2018

dev-master

9999999-dev

The SwiftMailer integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Paul Klimov

mail email yii2 swiftmailer mailer swift

25/04 2018

2.1.1

2.1.1.0

The SwiftMailer integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Paul Klimov

mail email yii2 swiftmailer mailer swift

04/08 2017

2.1.0

2.1.0.0

The SwiftMailer integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Paul Klimov

mail email yii2 swiftmailer mailer swift

01/05 2017

2.0.7

2.0.7.0

The SwiftMailer integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Paul Klimov

mail email yii2 swiftmailer mailer swift

09/09 2016

2.0.6

2.0.6.0

The SwiftMailer integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Paul Klimov

mail email yii2 swiftmailer mailer swift

17/03 2016

2.0.5

2.0.5.0

The SwiftMailer integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Paul Klimov

mail email yii2 swiftmailer mailer swift

11/05 2015

2.0.4

2.0.4.0

The SwiftMailer integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Paul Klimov

mail email yii2 swiftmailer mailer swift

01/03 2015

2.0.3

2.0.3.0

The SwiftMailer integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Paul Klimov

mail email yii2 swiftmailer mailer swift

11/01 2015

2.0.2

2.0.2.0

The SwiftMailer integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Paul Klimov

mail email yii2 swiftmailer mailer swift

07/12 2014

2.0.1

2.0.1.0

The SwiftMailer integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Paul Klimov

mail email yii2 swiftmailer mailer swift

12/10 2014

2.0.0

2.0.0.0

The SwiftMailer integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Paul Klimov

mail email yii2 swiftmailer mailer swift

28/09 2014

2.0.0-rc

2.0.0.0-RC

The SwiftMailer integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Paul Klimov

mail email yii2 swiftmailer mailer swift

13/04 2014

2.0.0-beta

2.0.0.0-beta

The SwiftMailer integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Paul Klimov

mail email yii2 swiftmailer mailer swift

29/11 2013

2.0.0-alpha

2.0.0.0-alpha

The SwiftMailer integration for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Paul Klimov

mail email swiftmailer mailer yii swift