Your Ad Here
0

What type of headers have to be added in the mail function to attach a file?

Posted by The Blogger on 12:48 PM in
Answer:

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

tags: php interview questions and answers, php interview question What type of headers have to be added in the mail function to attach a file, What type of headers have to be added in the mail function to attach a file

0 Comments

Post a Comment

Your Ad Here

Copyright © 2009 Interview Questions and Answers