formatting email in php?

后端 未结 2 1648
夕颜
夕颜 2021-01-24 17:19
$to = \"$email\";
$subject = \"Thank You\";
$message = \"

Thanks for applying

\"; $from = \"solomon@kornar.com\"; $headers = \"From: $from\"; mail($to,$
2条回答
  •  耶瑟儿~
    2021-01-24 18:03

    You need to send the Content-type header as text/html.

    For example, change the $headers line to

    $headers = "From: $from";
    $headers .= "\nContent-type: text/html";
    

提交回复
热议问题