Mail mime not sending email

Post everything else here

Moderators: Website/Forum Admins, Other/Off Topic Moderators

pfanning
Posts: 2
Joined: Mon Jun 11, 2012 7:21 am

Mail mime not sending email

Postby pfanning » Sat Nov 17, 2012 9:14 pm

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

Who is online

Users browsing this forum: No registered users and 1 guest