PHP Classes

D3 PHP POP3 Receive Email: Retrieve email messages from POP3 mailbox with YII

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 135 All time: 9,293 This week: 42Up
Version License PHP version Categories
d3pop3 1.0.0Freeware7.1Email, Networking, PHP 5, Console
Description 

Author

This package can retrieve email messages from POP3 mailbox with YII.

It can retrieve and display in a terminal console email messages retrieved from one or more mailboxes using the POP3 protocol.

The POP3 server, user names and passwords are retrieved from separate configuration files.

Innovation Award
PHP Programming Innovation award nominee
March 2019
Number 3


Prize: One subscription to the PDF edition of the PHP Architect magazine
Many users can access the email they receive using applications that implement the POP3 protocol.

This package can be used to retrieve and show email messages from a terminal console using a POP3 component and the YII framework.

Manuel Lemos
Picture of Uldis Nelsons
Name: Uldis Nelsons <contact>
Classes: 19 packages by
Country: Latvia Latvia
Innovation award
Innovation award
Nominee: 12x

Winner: 2x

 

Documentation

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
  • migration configuration. Add to console parameters migration path
    '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', ]
  • create to d3yii2/d3files defined upload directory subdirectory D3pop3Email

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


  Files folder image Files (62)  
File Role Description
Files folder imagecommand (1 file)
Files folder imagecomponents (8 files)
Files folder imagedictionaries (1 file)
Files folder imagegii (7 files)
Files folder imagemessages (1 directory)
Files folder imagemigrations (16 files)
Files folder imagemodels (14 files, 1 directory)
Files folder imagewidgets (2 files)
Accessible without login Plain text file composer.json Data Auxiliary data
Plain text file d3pop3.php Class Class source
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file testfile.html Data Auxiliary data
Accessible without login Plain text file translation.php Aux. Auxiliary script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:135
This week:0
All time:9,293
This week:42Up