PHP Classes

File: readattachement.php

Recommend this page to a friend!
  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: 12 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
?>