formatting email in php?

后端 未结 2 1620
夕颜
夕颜 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";
    
    0 讨论(0)
  • 2021-01-24 18:12

    You need to set your headers content type. Like:

    $headers.= 'Content-type: text/html; charset=UTF-8' . "\r\n";
    
    0 讨论(0)
提交回复
热议问题