$html = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  "http://www.w3.org/TR/html4/loose.dtd">
	<html>
	<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<title>標題</title>
	</head>
	<body>';
	$html .= '<p>標題</p>';

	$html .= '<a href="http://tw.yahoo.com"><img height="100%" src="http://xxx.jpg" /></a>';
	$html .= '</body></html>';

	$to      ='jeff@gmail.com';
	$subject = '測試信件';
	$from    = "service@test.com.tw";
	$headers = "Content-type: text/html; charset=utf-8\r\n" .
			   "From: $from\r\n";
	$check=mail($to,$subject,$html,$headers);

Leave a comment

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *