How can I use mail() function to send a html file which maked by php file. plz teach me thanks.
Hi Theo,
If you want to send HTML mail, you need to set the following header (fourth parameter): "Content-Type: text/html".
Then write your HTML code in the body of the message.
Regards,
David
Thanks David, But may be u mistaken my meaning. i should send a dynamic HTML file maked by PHP file,(so i havent the HTML code) In this case,what shall i do to send the HTML file?
plz do me a favor
Theo
You could get PHP to build a tring which contains the HMTL code then email it with the content type HMTL in the header.
Mark.