io ho un form che invia una e-mail ma non so come gli soppo impostare che deve inviare l'e-mail in html e non come testo
Codice PHP:
$query = "INSERT INTO sentcards ( cardid, toname, toemail, message, fromname, fromemail ) values( '$cardtosend', '$friendsname', '$friendsemail', '$messagetofriend', '$sendername', '$senderemail' )";
mysql_query( $query, $link );
$refs = mysql_insert_id();
$collecturl = "$siteurl/viewcard.php?id=$refs";
$subject = "oggetto";
$msg = "testo che dovrebbe essere letto in html...";
$headers = "From: $sendername <$senderemail>\nReply-To: $sendername <$senderemail>\nX-Mailer: V76 Ecard Manager";
mail("$friendsemail", "$subject", "$msg", "$headers");