\nReply-To: <$from_addr>\n"; if($Cc != "") { $headers .= "Cc: $cc\n"; } if($Bcc != "") { $headers .= "Bcc: $bcc\n"; } $headers = "Return-Path: <$from_addr>\nX-Mailer: PHP\n"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-Type: multipart/mixed; boundary=\"{$mime_boundary}\"; Content-Transfer-Encoding: 7bit\n"; $headers .= "This is a multi-part message in MIME format.\n\n" . "--{$mime_boundary}\n" . "Content-Type:text/plain; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n"; $body .= "Hello $c_name,\n\nDo not delete this message!\n" . "It contains the product you just paid for.\n\n"; $body .= "--{$mime_boundary}\n" . "Content-Type: application/zip; name=\"{$FileName}\"\n" . "Content-Transfer-Encoding: base64\n\n" . $FileContents . "\n\n" . "--{$mime_boundary}--\n"; if ($to != "") { mail("$to","$subject","$body","$headers"); } header("Location: $thanks"); die(); ?>