What type of headers have to add in the mail function in
which file a attached?

Answers were Sorted based on User's Feedback



What type of headers have to add in the mail function in which file a attached?..

Answer / ansar

$headers = "Content-type disposition :attachmet
filename = 'filename.txt' "

Is This Answer Correct ?    7 Yes 1 No

What type of headers have to add in the mail function in which file a attached?..

Answer / devendrarjadav

To attach a file we must add the following header
as "\nMIME-Version: 1.0\n Content-Type: multipart/mixed"

Is This Answer Correct ?    3 Yes 3 No

Post New Answer

More PHP Interview Questions

Can the value of a constant change during the script's execution?

0 Answers  


What is the difference between the functions unlink and unset?

8 Answers   Small Firm, TCS,


Why do we use hooks?

0 Answers  


i have designed a registration form in html (registration.html) and to insert user details in database i have designed a submit form in php (submit_registration.php) but when i click on submit button in registration.html it opens a dialogue box which asks for open or save php(submit_registration.php) even though i have already installed apache HTTP server and php version 5 on my computer and i am using mysql as backend. plz suggest me what should i do????

3 Answers  


Why do we use namespace in php?

0 Answers  






What are the differences between PHP3 and PHP4 and PHP5? what is the current stable version of PHP?

0 Answers  


Does csrf token change?

0 Answers  


What is "echo" in php?

0 Answers  


What language is php based on?

0 Answers  


i am a php programmer can i be a java programmer?

3 Answers  


How to redirect https to http url through .htaccess?

0 Answers  


How do I end a php session?

0 Answers  


Categories