1.

What Type Of Headers Have To Be Added In The Mail Function To Attach A File?

Answer»

$BOUNDARY = '--' . MD5( uniqid ( RAND() ) );
$HEADERS = "From: \"Me\"\N";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: multipart/mixed; boundary=\"$boundary\"";

$boundary = '--' . md5( uniqid ( rand() ) );
$headers = "From: \"Me\"\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: multipart/mixed; boundary=\"$boundary\"";



Discussion

No Comment Found