3 include_once('../class.phpmailer.php');
\r
5 $mail = new PHPMailer();
\r
7 $body = $mail->getFile('contents.html');
\r
9 $body = eregi_replace("[\]",'',$body);
\r
11 $mail->From = "name@yourdomain.com";
\r
12 $mail->FromName = "First Last";
\r
14 $mail->Subject = "PHPMailer Test Subject";
\r
16 $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
\r
18 $mail->MsgHTML($body);
\r
20 $mail->AddAddress("whoto@otherdomain.com", "John Doe");
\r
22 if(!$mail->Send()) {
\r
23 echo 'Failed to send mail';
\r