Login   Register  
PHP Classes
elePHPant
Icontem

File: imap.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Chris Nizz  >  PHP 5 IMAP Class  >  imap.php  >  Download  
File: imap.php
Role: Example script
Content type: text/plain
Description: Just a test/example file for using the imap class
Class: PHP 5 IMAP Class
Retrieve messages from an IMAP server
Author: By
Last change:
Date: 4 years ago
Size: 506 bytes
 

Contents

Class file image Download
<?
include_once _'Imap.class.php';

$imap = new Imap('localhost','email_username','email_password');
var_dump($imap->get_is_connected());
echo 
"<pre>";
print_r($imap->returnImapMailBoxmMsgInfoObj());
print_r($imap->returnImapHeadersArr());
print_r($imap->returnMailboxListArr());
print_r($imap->returnMailBoxHeaderArr());
print_r($imap->returnEmailMessageArr(1));
echo 
"</pre>";

echo 
$imap->saveAttachment(2,2,'/path/to/where/you/want/the/attachment/saved'.md5('14'.date('Y-m-d H:i:s')))
?>