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


		$to = "";
		$text = "Mime test successful";
		$from = "Paul testing";
		$subject = "test email";
		$visitor_email = "";
		$text = "This is an email test";
		$message = new Mail_mime();
		$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";