Skip to content

Instantly share code, notes, and snippets.

View DavidRockin's full-sized avatar
🤒
Out sick

DavidRockin DavidRockin

🤒
Out sick
View GitHub Profile
@DavidRockin
DavidRockin / Mailer.php
Created August 2, 2014 21:53
PHPMailer save emails to IMAP folder
<?php
class Mailer extends PHPMailer {
/**
* Save email to a folder (via IMAP)
*
* This function will open an IMAP stream using the email
* credentials previously specified, and will save the email
* to a specified folder. Parameter is the folder name (ie, Sent)