I can't send email with img tag in it


#1

Hello, please help. i can’t send email with img tag in it

[php]
$headers = “From: My Name <no-reply@”.$_SERVER[‘SERVER_NAME’].">";
$headers .= “MIME-Version: 1.0\r\n”;
$headers .= “Content-type: text/html; charset=iso-8859-1\r\n”;

	ob_start();
		$this->render('cart/email_ordered_table',array('session' => $session,'shipping_cost' => $shipping_cost,'LibItems' => $LibItems));
		$ordered_table = ob_get_contents();
	ob_end_clean();
	echo $ordered_table;
	$result = str_replace('[order_detail_table]',$ordered_table,nl2br($LibSetting->setting['pending_email']));
	$result = str_replace('[customer_name]',$current_user->user_firstname.' '.$current_user->user_lastname,$result);
	$result = str_replace('[transaction_id]',$trans_id,$result);
	//~ echo $current_user->user_email;
	//~ echo $result;
	//~ 
	//~ add_filter( 'wp_mail_content_type', array( &$this ,'set_html_content_type') );
		var_dump( mail( $current_user->user_email , ' ORDER DETAIL ', '<html><head><title></title></head><body>'.$result.'</body></html>' , $headers) ); die('sada');

[/php]

if img tag removed, this code work.

html source for img tag email like this
Celana legging 3R Broken white


#2

heeeeeelp :frowning: