user3251448
user3251448

Reputation: 11

not able to send html in mail function via ( php )

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

Upvotes: 1

Views: 62

Answers (1)

user3141031
user3141031

Reputation:

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

Upvotes: 2

Related Questions