Beispiel #1
0
<?php

include "SimpleMailer.class.php";
include "../SimpleTpl/SimpleTpl.class.php";
#include("Smarty.class.php");
$mail = new SimpleMailer();
if (!$mail->from("*****@*****.**", "LeanDNS Security Log")) {
    die("Invalid E-Mail");
}
$mail->replyto("*****@*****.**", "Support Department");
$mail->to("*****@*****.**", "Mikkel Mikjaer Christensen");
$mail->to("*****@*****.**", "Mikkel Mikjaer Christensen");
$mail->subject("Test email from SimpleMailer");
$mail->template_plain("demo_plain.tpl");
$mail->template_html("demo_html.tpl");
$mail->assign("value", "This is my testvalue");
$mail->send();