Skip to content

Instantly share code, notes, and snippets.

@luxifer
Created August 2, 2012 08:56
Show Gist options
  • Save luxifer/3235580 to your computer and use it in GitHub Desktop.
Save luxifer/3235580 to your computer and use it in GitHub Desktop.
Mail Attachment management demo
#!/usr/bin/env php
<?php
require_once("attachmentread.class.php");
$host="{host:port/params}BOX"; // voir http://fr.php.net/imap_open
$login=""; //imap login
$password=""; //imap password
$savedirpath="./" ; // attachement will save in same directory where scripts run othrwise give abs path
$jk=new MailAttachmentManager($host, $login, $password, $savedirpath); // Creating instance of class####
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment