2017 © Pedro Peláez
 

yii2-extension yii2-bounce

Helper classes for working with email bounces

image

strong2much/yii2-bounce

Helper classes for working with email bounces

  • Sunday, July 31, 2016
  • by strong2much
  • Repository
  • 1 Watchers
  • 1 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

yii2-bounce

Helper classes for working with email bounces., (*1)

Installation

Install package by composer, (*2)

{
    "require": {
       "strong2much/yii2-bounce": "dev-master"
    }
}

Or

$ composer require strong2much/yii2-bounce "dev-master"

Use the following code in your configuration file., (*3)

'bounce' => [
    'class' => 'strong2much\bounce\BounceManager'
]

For auto recognition of translation, put this component to bootstrap in your config, (*4)

'bootstrap' => ['bounce'],

otherwise specify it by yourself in i18n components, (*5)

'i18n' => [
    'translations' => [
        ...
        'bounce*' => [
            'class' => 'yii\i18n\PhpMessageSource',
            'basePath' => '@strong2much/bounce/messages',
        ],
        ...
    ],
],

You can use it as follows:, (*6)

//To add bounce report
$data = Yii::$app->bounce->parseMessage($emailMessage);
foreach($data as $bounceData) {
    Yii::$app->bounce->pushReport($bounceData['recipient'], $bounceData);
}

//To check bounce report
if(!Yii::$app->bounce->hasReport($email)) {
    //do some logic
}

In order to use full functionality, you will need to apply migrations., (*7)

The Versions

31/07 2016

dev-master

9999999-dev https://github.com/strong2much/yii2-bounce.git

Helper classes for working with email bounces

  Sources   Download

BSD-3-Clause

The Requires

 

email yii2 bounce