Mail mime not sending email

Post everything else here

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

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


		$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";

Who is online

Users browsing this forum: No registered users and 1 guest