<?php
// include TPLN
include('TPLN/TPLN.php');
$TPLN = new TPLN;
// complete example of email send
$TPLN->mailCharset('utf8');
$TPLN->mailUrgent(true);
$TPLN->mailConfirm(true);
$TPLN->mailFrom('contact@h2lsoft.com');
$TPLN->mailTo('john@doo.com');
$TPLN->mailSubject("Test of mail message");
$TPLN->mailBody("<b>html message</b>", 'HTML');
// you can also attach file
$file = 'reporting.pdf';
$source = file_get_contents($file);
$TPLN->mailAttachFile($source, $file);
// $TPLN->mailSend() or die($TPLN->mailError()); # uncomment this line to send email
echo "Your email has been sent !";
?>
no template required