PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Nahid Bin Azhar   PHP Imap Library   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example
Class: PHP Imap Library
Read and decode email from IMAP or POP3 mailboxes
Author: By
Last change: Applied fixes from StyleCI
Date: 7 years ago
Size: 258 bytes
 

Contents

Class file image Download
<?php
   
require_once 'src/imapxPHP.php';

   
$imap = new Imapx();

   
$inbox = $imap->getInbox(1);

//var_dump($inbox);
   
foreach ($inbox as $key => $mail) {
        if (isset(
$mail->subject)) {
            echo
$mail->subject.'<br/>';
        }
    }