Skip to content Skip to sidebar Skip to footer

Formatting Email In Php?

$to = '$email'; $subject = 'Thank You'; $message = '

Thanks for applying

'; $from = 'solomon@kornar.com'; $headers = 'From: $from'; mail($to,$subject,$message,$hea

Solution 1:

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";

Solution 2:

You need to set your headers content type. Like:

$headers.= 'Content-type: text/html; charset=UTF-8' . "\r\n";

Post a Comment for "Formatting Email In Php?"