yarcode/yii2-mailgun-mailer Mailgun mailer implementation for Yii2

Mailgun mailer component for Yii2 framework

  1. Installation
  2. Usage
  3. Licence
  4. Links

Build Status Latest Stable Version Total Downloads License

Mailgun is a transactional email cloud service. Say goodbye to your usual sendmail or postfix MTA problems. You can start sending emails via cloud without writing any line of code.

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist yarcode/yii2-mailgun-mailer

or add

"yarcode/yii2-mailgun-mailer": "*"

to the require section of your composer.json.

Usage

Configure YarCode\Yii2\Mailgun\Mailer as your mailer. ` 'mailer' => [

  'class' => \YarCode\Yii2\Mailgun\Mailer::class,
  'domain' => 'example.org',
  'apiKey' => 'CHANGE-ME',

], Now you can send your emails as usual. $message = \Yii::$app->mailer->compose() ->setSubject('test subject') ->setFrom('test@example.org') ->setHtmlBody('test body') ->setTo('user@example.org');

\Yii::$app->mailer->send($message); `

Licence

MIT

Links

0 0
1 follower
73 414 downloads
Yii Version: 2.0
License: MIT
Category: Mail
Developed by: Alexey Samoylov
Created on: Jul 6, 2018
Last updated: (not set)
Packagist Profile
Github Repository

Related Extensions