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

How do you format and output a number with leading zero's?

3 Answers  


Explain the difference between require() and require_once()?

1 Answers  


What is php namespace?

1 Answers  


Explain the difference between array_merge() and array_combine()?

1 Answers  


What is php and sql used for?

1 Answers  


How to find current date and time?

1 Answers  


What is meant by nl2br()?

4 Answers   Rushmore Consultancy,


How the web server interprets php and interacts with the client?

1 Answers  


Is there any way to call a JAVASCRIPT function in PHP in AJAX

4 Answers  


How do you end php?

1 Answers  


Tell me how stop the execution of a php scrip?

1 Answers  


List the different types of print functions available in php?

1 Answers  


Categories