Login   Register  
PHP Classes
elePHPant
Icontem

File: readattachement.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Jijomon Thottungalthara  >  Read POP3/IMAP attachment  >  readattachement.php  >  Download  
File: readattachement.php
Role: Example script
Content type: text/plain
Description: application
Class: Read POP3/IMAP attachment
Retrieve attachments from messages in a mailbox
Author: By
Last change: sample string to read gmail
Date: 3 years ago
Size: 405 bytes
 

Contents

Class file image Download
<?
require_once("attachmentread.class.php");
$host="{imap.gmail.com:993/imap/ssl}INBOX"// pop3host
$login=""//pop3 login
$password=""//pop3 password
$savedirpath="" // attachement will save in same directory where scripts run othrwise give abs path
$jk=new readattachment(); // Creating instance of class####
$jk->getdata($host,$login,$password,$savedirpath); // calling member function
?>