2017 © Pedro Peláez
 

yii2-extension d3pop3

Read emails an save in table

image

d3yii2/d3pop3

Read emails an save in table

  • Sunday, April 15, 2018
  • by uldisn
  • Repository
  • 1 Watchers
  • 0 Stars
  • 117 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 3 % Grown

The README.md

Yii2, (*1)

d3pop3

Features

  • read emails from diferent pop3 and attach to model records

Installation

php composer.phar require d3yii2/d3pop3 dev-master
  • add to config/console.php
    'modules' => [
        'D3Pop3' => [
            'class' => 'd3yii2\d3pop3\d3pop3',
            'ConfigEmailContainerData' => [
                [
                    'model' => 'app\models\test',
                    'host' => 'pop.gmail.com',
                    'user' => '[...user..]@gmail.com',
                    'password' => '.........',
                    'ssl' => 'SSL',
                ],
            ],
            'EmailContainers' => [
                'd3yii2\d3pop3\components\ConfigEmailContainer',
            ]
        ],
    ],
  • add to config/console.php under modules d3yii2/d3files with identical setings as in config.web.php, (*2)

  • migration configuration. Add to console parameters migration path, (*3)

    'yii.migrations' => [
        '@vendor/d3yii2/d3pop3/migrations',
    ],
  • do migration
yii migrate
  • For reading emails add yii command to console config 'controllerMap' => [ 'd3pop3' => 'd3yii2\d3pop3\command\D3Pop3Controller', ], (*4)

  • create to d3yii2/d3files defined upload directory subdirectory D3pop3Email, (*5)

Usage

By Config

In configuration under 'ConfigEmailContainerData' set: * POP3 connection data, * model with namespace for attaching emails * model field name, where search email to field value for ataching email, (*6)

DB

alt text, (*7)

The Versions

15/04 2018

dev-master

9999999-dev

Read emails an save in table

  Sources   Download

BSD-3-Clause

The Requires

 

email yii2 pop3

22/01 2018

dev-development-gmail

dev-development-gmail

Read emails an save in table

  Sources   Download

BSD-3-Clause

The Requires

 

email yii2 pop3