2017 © Pedro Peláez
 

library php-imap

PHP class to access mailbox by POP3/IMAP/NNTP using IMAP extension

image

iu-tecmob/php-imap

PHP class to access mailbox by POP3/IMAP/NNTP using IMAP extension

  • Sunday, April 5, 2015
  • by iu-tecmob
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

ImapMailbox is PHP class to access mailbox by POP3/IMAP/NNTP using IMAP extension, (*1)

Features

  • Connect to mailbox by POP3/IMAP/NNTP (see imap_open)
  • Get mailbox status (see imap_check)
  • Receive emails (+attachments, +html body images)
  • Search emails by custom criteria (see imap_search)
  • Change email status (see imap_setflag_full)
  • Delete email

Usage example

<?php

require_once('../src/ImapMailbox.php');

// IMAP must be enabled in Google Mail Settings
define('GMAIL_EMAIL', 'some@gmail.com');
define('GMAIL_PASSWORD', '*********');
define('ATTACHMENTS_DIR', dirname(__FILE__) . '/attachments');

$mailbox = new ImapMailbox('{imap.gmail.com:993/imap/ssl}INBOX', GMAIL_EMAIL, GMAIL_PASSWORD, ATTACHMENTS_DIR, 'utf-8');
$mails = array();

// Get some mail
$mailsIds = $mailbox->searchMailBox('ALL');
if(!$mailsIds) {
    die('Mailbox is empty');
}

$mailId = reset($mailsIds);
$mail = $mailbox->getMail($mailId);

var_dump($mail);
var_dump($mail->getAttachments());

The Versions

05/04 2015

dev-master

9999999-dev https://github.com/barbushin/php-imap

PHP class to access mailbox by POP3/IMAP/NNTP using IMAP extension

  Sources   Download

LGPL

The Requires

  • php >=5.3.0

 

mail php imap

05/04 2015

1.0.2

1.0.2.0 https://github.com/barbushin/php-imap

PHP class to access mailbox by POP3/IMAP/NNTP using IMAP extension

  Sources   Download

LGPL

The Requires

  • php >=5.3.0

 

mail php imap

05/04 2015

1.0.1

1.0.1.0 https://github.com/barbushin/php-imap

PHP class to access mailbox by POP3/IMAP/NNTP using IMAP extension

  Sources   Download

LGPL

The Requires

  • php >=5.3.0

 

mail php imap