$to = 'sales@zui88.com';
$subject = "=?UTF-8?B?".base64_encode('網(wǎng)站收到一個(gè)新信息')."?=";
$message = "
用戶(hù)姓名:{$_POST['name']}\n
用戶(hù)郵箱:{$_POST['email']}\n
用戶(hù)電話:{$_POST['contact']}\n
留言?xún)?nèi)容:{$_POST['content']}
";
$headers = 'From: webmaster@zui88.com' . "\r\n" .
'Reply-To: webmaster@zui88.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
mail($to, $subject, $message, $headers);