2017 © Pedro Peláez
 

library yii2-mail-object

This wraps Yii2 mailer as an object

image

urbanindo/yii2-mail-object

This wraps Yii2 mailer as an object

  • Friday, June 22, 2018
  • by urbanindo
  • Repository
  • 2 Watchers
  • 0 Stars
  • 180 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

yii2-mail-object

This wraps mail object that can be instantiated rather standalone., (*1)

Build Status, (*2)

Usage

Create new mail object class using MailObject., (*3)

e.g., (*4)

class DummyMail extends MailObject
{
    protected function getSubject(): string
    {
        return 'Hello, World!';
    }

    protected function getContentParams(): array
    {
        return [
            'recipientName' => 'Jane Doe',
        ];
    }

    protected function getRecipient(): array
    {
        return [
            'jane.doe@example.com' => 'Jane Doe',
        ];
    }

}

Create html.php and text.php for HTML-formatted and plain text email respectively., (*5)

To send the object, simply., (*6)

$mail = new DummyMail();
$mail->send();

Testing

To run testing, execute, (*7)

./vendor/bin/phing test

The Versions

22/06 2018

dev-master

9999999-dev

This wraps Yii2 mailer as an object

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petra Barus

22/06 2018

v1.0

1.0.0.0

This wraps Yii2 mailer as an object

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petra Barus

22/06 2018

dev-initial-commit

dev-initial-commit

This wraps Yii2 mailer as an object

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petra Barus