Skip to content

Instantly share code, notes, and snippets.

@luizfonseca
Created March 16, 2011 21:21
Show Gist options
  • Save luizfonseca/873343 to your computer and use it in GitHub Desktop.
Save luizfonseca/873343 to your computer and use it in GitHub Desktop.
"How to use" of the Sample Marketing Class
<?php
require_once('./class/lib/PHPMailer_Class.php');
require_once('./class/Marketing_Class.php');
if($_SERVER['REQUEST_METHOD'] == 'POST')
{
$marketing = new Marketing;
$marketing->destination = dirname(__FILE__) . '/files/';
$marketing->type = 'html';
$marketing->file = $_FILES;
$marketing->csv = $_FILES;
$marketing->send_marketing();
}
else
{
exit();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment