Answers

Question and Answer:

  Home  PHP

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

$boundary = '--' . md5( uniqid ( rand() ) );

$headers = "From: "Me"n";

$headers .= "MIME-Version: 1.0n";

$headers .= "Content-Type: multipart/mixed; boundary="$boundary"";

 153 views

More Questions for you: