2017 © Pedro PelĂĄez
 

library yii-emailer

Extension for creating and sending emails for the Yii PHP framework.

image

nordsoftware/yii-emailer

Extension for creating and sending emails for the Yii PHP framework.

  • Tuesday, August 26, 2014
  • by crisu83
  • Repository
  • 21 Watchers
  • 12 Stars
  • 7,754 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 6 Forks
  • 1 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

yii-emailer

Extension for creating and sending emails for the Yii PHP framework., (*1)

Usage

  • Migrate the email_message database table by this command:, (*2)

    yiic migrate --migrationPath=vendor.nordsoftware.yii-emailer.migrations, (*3)

  • Attach the EmailBehavior to your controller or to any component that you want to use this extention on it:, (*4)

public function behaviors()
    {
        return array_merge(parent::behaviors(), array(
            'emailer' => array(
                'class' => 'EmailBehavior',
            ),
        ));
    }
  • Add Emailer component to your app config:
return array(
'components' => array(
        'email' => array(
            'class' => 'vendor.nordsoftware.yii-emailer.components.Emailer'
        )
    ));
  • Now you can send the message by calling:
$email = $this->createEmail($from, $to, $subject, $body, array('body'=>$message));
$this->sendEmail($email);
  • To use templates you need to define them in your app config:
    'templates'=>array(
      'foo'=>array(
       'subject'=>'Foo',
       'view'=>'foo', // refers to a view in views/email
      ),
    ),

The Versions

26/08 2014

dev-master

9999999-dev

Extension for creating and sending emails for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Requires

 

by Kenneth Söderlund

09/04 2014

dev-develop

dev-develop

Extension for creating and sending emails for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Requires

 

by Kenneth Söderlund

09/04 2014

1.2.2

1.2.2.0

Extension for creating and sending emails for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Requires

 

by Kenneth Söderlund

10/01 2014

1.2.1

1.2.1.0

Extension for creating and sending emails for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Requires

 

by Kenneth Söderlund

10/01 2014

1.2.0

1.2.0.0

Extension for creating and sending emails for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Requires

 

by Kenneth Söderlund

18/08 2013

1.1.0

1.1.0.0

Extension for creating and sending emails for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Requires

 

by Kenneth Söderlund

14/05 2013

1.0.0

1.0.0.0

Extension for creating and sending emails for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Requires

 

by Kenneth Söderlund