PHP mail() attachment problems
$to = “[email protected]”; $from = “Website <[email protected]>”; $subject = “Test Attachment Email”; $separator = md5(time()); // carriage return type (we use a PHP end of line constant) $eol = PHP_EOL; // attachment name $filename = “document.pdf”; //$pdfdoc is PDF generated by FPDF $attachment = chunk_split(base64_encode($pdfdoc)); // main header $headers = “From: “.$from.$eol; $headers .= “MIME-Version: … Read more