| 
<?php
 /***************************
 * Example for genericMail *
 ***************************/
 
 /*
 * Include Class
 */
 require_once 'class_genericMail.php';
 
 /*
 * Set Mailsender
 */
 $sender = "Superuser <[email protected]>";
 
 /*
 * Set recipient
 */
 $rec = array(
 'to'    => '[email protected], He <[email protected]>',
 );
 
 /*
 * Set Maildata
 */
 $data = array(
 'subject'    => "This is a testmail",
 'mailtext'    => "<h1>Welcome to genericMail.</h1>",
 'type'        => "html",
 'attachment'    => array( 'testfile.html' )
 );
 
 /*
 * Send the Mail
 */
 if ( genericMail::sendmail( $sender, $rec, $data ) ) {
 print "Mail was send successfull ... \n";
 } else {
 print "Hmm .. there could be a Problem ... \n";
 }
 
 ?>
 
 |