Location: PHPKode > scripts > EasyPhpMassEmail > easyphpmassemail/API.txt
Initialize the class:

include_once('easyphpmassemail.class.php');

$massemail = new easyphpmassemail;

Options / Commands:

$massemail -> Emailto             = array()     // The array containing all the email addresses

$massemail -> Subject             = (string)    // The subject of the email

$massemail -> Headers             = (string)    // The headers for the email

$massemail -> Message             = (string)    // The message body of the email

$massemail -> Batchsize           = (int)       // The batch size for sending emails (depends on server)

$massemail -> Testmode            = (boolean)   // Run in test mode

$massemail -> Preparemail()       = (function)  // Prepare the mass email session, returns true upon success

$massemail -> Sendemails()        = (function)  // Send a batch of emails, returns false upon completion

$massemail -> Progress(string)    = (function)  // Return the progress indicator, 
                                                   '%' returns percentage completed (string)
                                                   'r' returns emails remaining (int)
                                                   't' returns total emails left (int)

$massemail -> Failed()            = (function)  // Returns an array with emails that failed (mail command)

$massemail -> Cleanup()           = (function)  // Cleanup when you are done, returns true upon success

Return current item: EasyPhpMassEmail