Page 1 of 1

Mail mime not sending email

Posted: Sat Nov 17, 2012 9:14 pm
by pfanning
This code gives no errors which leads me to believe it is working correctly. However, no email is received. Where would you look to trouble shoot? Could it be an email set up issue on the server? I confess, I am stuck.

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);