Skip to content

shaunjc/SS_IMAP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SS_IMAP

Silverstripe IMAP class for extending imap functions

Installation:

Simply copy the master folder to the base directory of your Silverstripe install, rename it to something appropriate, such as ss_imap, and perform a /dev/build/?flush=all.

Usage:

Extend the SS_IMAP class with class of your own, and add or extend functions to take advantage of the native imap functions.

<?php
class EmailScanner extends SS_IMAP
{
  public $db = array(
    'Username' => 'Varchar(255)',
    'Password' => 'Varchar(255)',
    'Server' => 'Varchar(255)'
  );
  
  public function connect()
  {
    $this->imap = $this->open('{'.$this->Server.'}',$this->Username,$this->Password);
  }
}

About

Silverstripe IMAP class for extending imap functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages