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 session cookies php?

0 Answers  


for image work which library?

0 Answers  


Which function can be used to exit from the script after displaying the error message?

0 Answers  


Explain Whitespace Characters?

0 Answers  


Tell me how to execute an sql query? How to fetch its result?

0 Answers  






what is the difference between GET,POST and REQUEST in php

1 Answers  


Is null check in php?

0 Answers  


How can we destroy the session, how can we unset the variable of a session?

3 Answers  


What is the use of magic function in php?

0 Answers  


Is python better than php?

0 Answers  


How to get the length of string?

0 Answers  


What is get and post method in php?

0 Answers  


Categories