2017 © Pedro Peláez
 

library mail

Get message from mail box

image

paulbunyannet/mail

Get message from mail box

  • Thursday, September 24, 2015
  • by paulbunyannet
  • Repository
  • 2 Watchers
  • 1 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

paulbunyannet/mail

Build Status Latest Version, (*1)

paulbunyannet/mail Shortcut for checking a mail box, (*2)

Installation

This project can be installed via [Composer]:, (*3)

``` bash $ composer require paulbunyannet/mail:"^1.0", (*4)


## Get Mail ```php $mailbox = new Pbc\Mail\GetMail([ 'username' => emailUsername, 'password' => emailPassword, 'email' => someone@email.com, 'mailServer' => mail.email.com, ]); // get total messages in box $totalMail = $mailbox->getTotalMails(); for ($i = 1; $i <= $totalMail; $i++) { $headers = $mailbox->getHeaders($i); echo "

" . $headers['subject'] . '

'; echo "

From: " . $headers['from'] . ', (*5)

'; echo $mailbox->getFullBody($i); }

The Versions

24/09 2015

dev-master

9999999-dev

Get message from mail box

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Mitul Koradia