What type of headers have to be added in the mail function to attach a file?
Answer Posted / Hina Zehra
In PHP, when using the 'mail' function to send an email with an attachment, you need to add Content-Type and Content-Disposition headers. Here is an example:
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="filename.ext"
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how to detect a mobile device using php
Write a program using while loop?
How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain
sort term descripttion form, report and uery
What is trait in php?
What is the difference between htmlentities() and htmlspecialchars()?
What does $_files means?
What is the current stable version of php?
if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer
Which variable declarations within a class is invalid in php?
Name and explain five of the PHP error constants?
What sized websites have you worked on in the past?
hello all, I need some sample placement papers in lion bridge.. can anyone help me?
How to create a web form?
Explain me is it possible to destroy a cookie?