0
使用以下代碼從我的ubuntu服務器上運行的php腳本發送郵件。自定義從PHP郵件功能發送的郵件中的字段
$to = "<receipients_email_id_here>";
$subject = "Hello";
$txt = "<Message Body>";
$headers = "From: Site Name <[email protected]>\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
if(mail($to,$subject,$txt,$headers)){
print "Sent";
}
else
{
print "Failed";
}
當用戶收到郵件,他認爲在"Site Name <[email protected]>"
從現場。我想從外地到只顯示「網站名稱」,我也想添加一個超鏈接它指向我的網站。 這是可能從php代碼做到的嗎?
請幫助 謝謝