Code: Select all
require_once('../php/Mail/mime.php');
require_once('../php/Mail.php');
$to = "pfcowboy@gmail.com";
$text = "Mime test successful";
$from = "Paul testing";
$subject = "test email";
$visitor_email = "pvfannin@pacbell.net";
$text = "This is an email test";
$message = new Mail_mime();
$message->setTXTBody($text);
$body = $message->get();
$extraheaders = array("From"=>$from, "Subject"=>$subject,"Reply-To"=>$visitor_email);
$headers = $message->headers($extraheaders);
$mail = Mail::factory("mail");
$mail->send($to, $headers, $body);
//die("line 84");
echo "end of php";
print_r($mail);