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 I check environment variables?

0 Answers  


What are the advantages of oops in php?

0 Answers  


How to delete an element from an array?

0 Answers  


What is the difference between mysql_connect and mysql_pconnect ? Which one is good in terms of performance ?

4 Answers  


How to use the COM components in PHP?

2 Answers   HCL,


How to remove an empty directory?

0 Answers  


How could I install codeignitor ?

0 Answers  


What is $_ get in php?

0 Answers  


Why do we use session?

0 Answers  


How can I prevent sql-injection in php?

0 Answers  


How many types of functions are there in php?

0 Answers  


How many escape sequences are recognized in single-quoted strings?

0 Answers  


Categories