• +91 9723535972
  • info@interviewmaterial.com

PHP Interview Questions and Answers

Question - 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.0\n"; $headers .= "Content-Type: multipart/mixed; boundary=\"$boundary\"";

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners