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,286 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
Age: 55
All time rank: 19476 in Latvia Latvia
Week rank: 170 Up1 in Latvia Latvia Up
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

  Files folder image Files (62)  /  command  
File Role Description
  Plain text file D3Pop3Controller.php Class Class source

  Files folder image Files (62)  /  components  
File Role Description
  Plain text file Action.php Class Class source
  Plain text file ConfigEmailContainer.php Class Class source
  Plain text file Count.php Class Class source
  Plain text file D3Mail.php Class Class source
  Plain text file EmailContainerInerface.php Class Class source
  Plain text file EmailModelLogic.php Class Class source
  Plain text file ReadEmails.php Class Class source
  Plain text file SettingEmailContainer.php Class Class source

  Files folder image Files (62)  /  dictionaries  
File Role Description
  Plain text file ConnectingSettingsDict.php Class Class source

  Files folder image Files (62)  /  gii  
File Role Description
  Accessible without login Plain text file d3pop3_actionsGiiantModel.json Data Auxiliary data
  Accessible without login Plain text file d3pop3_connecting_...ngsGiiantModel.json Data Auxiliary data
  Accessible without login Plain text file d3pop3_emailsGiiantModel.json Data Auxiliary data
  Accessible without login Plain text file d3pop3_email_addressGiiantModel.json Data Auxiliary data
  Accessible without login Plain text file d3pop3_email_errorGiiantModel.json Data Auxiliary data
  Accessible without login Plain text file d3pop3_email_modelsGiiantModel.json Data Auxiliary data
  Accessible without login Plain text file d3pop3_send_receivGiiantModel.json Data Auxiliary data

  Files folder image Files (62)  /  messages  
File Role Description
Files folder imagelv-LV (1 file)

  Files folder image Files (62)  /  messages  /  lv-LV  
File Role Description
  Accessible without login Plain text file d3pop3.php Aux. Auxiliary script

  Files folder image Files (62)  /  migrations  
File Role Description
  Plain text file m160712_170102_init.php Class Class source
  Plain text file m160815_170102_upgrade.php Class Class source
  Plain text file m171203_153339_con..._setting_create.php Class Class source
  Plain text file m171222_191725_sen...eive_add_status.php Class Class source
  Plain text file m180121_210400_gmail_type.php Class Class source
  Plain text file m180122_203846_add...ve_pop3_to_imap.php Class Class source
  Plain text file m180912_081433_settings_add_email.php Class Class source
  Plain text file m180912_083622_ema...mailContainerId.php Class Class source
  Plain text file m180920_105346_actions_create.php Class Class source
  Plain text file m181007_044809_d3p...dd_from_user_id.php Class Class source
  Plain text file m181008_072305_error_create.php Class Class source
  Plain text file m181010_034133_add_indexes.php Class Class source
  Plain text file m181021_101942_con...r_type_add_smtp.php Class Class source
  Plain text file m181228_055916_con..._settings_alter.php Class Class source
  Plain text file m190118_093958_actions_add_indx.php Class Class source
  Plain text file m190315_113645_alt...eceiv_add_draft.php Class Class source

  Files folder image Files (62)  /  models  
File Role Description
Files folder imagebase (7 files)
  Plain text file D3cCompany.php Class Class source
  Plain text file D3pop3Actions.php Class Class source
  Plain text file D3pop3ConnectingSettings.php Class Class source
  Plain text file D3pop3ConnectingSmtpSettings.php Class Class source
  Plain text file D3pop3Email.php Class Class source
  Plain text file D3pop3EmailAddress.php Class Class source
  Plain text file D3pop3EmailError.php Class Class source
  Plain text file D3pop3EmailModel.php Class Class source
  Plain text file D3pop3SendReceiv.php Class Class source
  Plain text file D3pPerson.php Class Class source
  Plain text file TypeGmailForm.php Class Class source
  Plain text file TypeImapForm.php Class Class source
  Plain text file TypePop3Form.php Class Class source
  Plain text file TypeSmtpForm.php Class Class source

  Files folder image Files (62)  /  models  /  base  
File Role Description
  Plain text file D3pop3Actions.php Class Class source
  Plain text file D3pop3ConnectingSettings.php Class Class source
  Plain text file D3pop3Email.php Class Class source
  Plain text file D3pop3EmailAddress.php Class Class source
  Plain text file D3pop3EmailError.php Class Class source
  Plain text file D3pop3EmailModel.php Class Class source
  Plain text file D3pop3SendReceiv.php Class Class source

  Files folder image Files (62)  /  widgets  
File Role Description
  Plain text file D3Pop3MailModels.php Class Class source
  Plain text file D3Pop3ModelMails.php Class Class source

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,286
This week:42Up