What type of headers have to be added in the mail function to attach a file?
Answer / 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 |
Which method removes the last element from the end of an array?
How come the code works, but doesn’t for two-dimensional array of mine?
Explain the difference between mysql_connect and mysql_pconnect?
how to get substring of string without using substr() function in php ????
List some features of php that are deprecated in php
what is the abbrevation of PHP?
Inside a php function, what param needs to be set in order to access a global variable?
What is global array in php?
What is the purpose of using php?
Write a regular expression to get the value xxx from the string 'xxx@yyy.com'
PHP serverside scripting language or client side scripting language>
Explain Creating and Naming an Array?