Sending a mail with attachment in PHP
Posted: Wed Nov 30, 2011 4:42 am
I am trying to post a form to an email. I have a file field in the form which I want to send to the email as an attachment.
The attachment goes but the mail body is empty. I guess its because of the header "Content-type: " and Content -disposition, when I change the content type, the body displays but the attachment doesnt send anymore.
Please any help on how I can display my page body in text/html and still send my file as an attachment?
Thanks
The attachment goes but the mail body is empty. I guess its because of the header "Content-type: " and Content -disposition, when I change the content type, the body displays but the attachment doesnt send anymore.
Please any help on how I can display my page body in text/html and still send my file as an attachment?
Thanks