Discussion board
What type of headers have to be added in the mail function to attach a file?
By Balu Prasad
Hi,
Can anyone tell me What type of headers have to be added in the mail function to attach a file?
Reply
Post   Reset
Teacher SiliconIndia replied to Balu Prasad Monday, November 23, 2009
Hi balu,

You must add:

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