3
<title>PHPMailer - Sendmail basic test</title>
9
require_once('../class.phpmailer-lite.php');
11
$mail = new PHPMailerLite(); // defaults to using php "Sendmail" (or Qmail, depending on availability)
13
$body = file_get_contents('contents.html');
14
$body = eregi_replace("[\]",'',$body);
16
$mail->SetFrom('name@yourdomain.com', 'First Last');
18
$address = "whoto@otherdomain.com";
19
$mail->AddAddress($address, "John Doe");
21
$mail->Subject = "PHPMailer Test Subject via Sendmail, basic";
23
$mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
25
$mail->MsgHTML($body);
27
$mail->AddAttachment("images/phpmailer.gif"); // attachment
28
$mail->AddAttachment("images/phpmailer_mini.gif"); // attachment
31
echo "Mailer Error: " . $mail->ErrorInfo;