Downloadd3pop3
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',
]
],
],
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
|