I’m trying to send an email with an HTML attachment,
I don’t want the html to show in the message,
I actually want the file to be attached.
I’m half way there, I have the file attached in the email,
but hotmail is showing the html in the message aswell as attaching it.
I’m using the mime type: application/x-download but have also tried text/html, both have the same result.
Failing the answer to this question, it would be useful if someone knows a file type that can be opened on any computer (except pdf or images) where the source of the file can contain raw/uncompressed text. I’m basically emailing a voucher with the users details filled in onto the voucher, so I’m using str_replace to get them on there and so can’t use a pdf with str_replace.
If you set the content-disposition to attachment then the MUA should not display the HTML until the user accesses it.