1

i have problem in mail() function

i can't send html in mail() function via ( php )

i use this statment:

 $headers .= "MIME-Version: 1.0\n";
 $headers .= "Content-type: text/html; charset=iso-8859-1\n";
The Hungry Dictator
  • 3,444
  • 5
  • 37
  • 53

1 Answers1

2

You must specify Content-Type: multipart/mixed in your email headers for alternate message content types.

$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: multipart/mixed; "\n\n";