Basic PHP Programming Question: Download Questions PDF
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.0n";
$headers .= "Content-Type: multipart/mixed; boundary="$boundary"";
$headers = "From: "Me"n";
$headers .= "MIME-Version: 1.0n";
$headers .= "Content-Type: multipart/mixed; boundary="$boundary"";
Download PHP Interview Questions And Answers
PDF
Previous Question | Next Question |
What changes I have to do in php.ini file for file uploading? | What is the difference between Reply-to and Return-path in the headers of a mail function? |