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

What is the difference between $message and $$message?

12 Answers   BSPL, eGrove, i-Net Solution,


How does php isset work?

0 Answers  


Does not want to see PHPSESSID in the url. How can be done this ?

3 Answers  


Differentiate echo vs. Print statement.

0 Answers  


What is PEAR in PHP?

3 Answers  






What is inheritance in php? How many types of inheritance supports php?

0 Answers  


what is the use of include_once in php?

0 Answers  


Can we extend final class in php?

0 Answers  


What is the use of $_server and $_env?

0 Answers  


What is mysql_fetch_object?

0 Answers  


How can I rotate an image?

1 Answers   Rushmore Consultancy,


How do you remove whitespace from the beginning and end of a $string variable?

0 Answers  


Categories