Create inline MHTML attachments

One of the advantages of RTF mail is that it supports
inline attachments - you can attach a file and have it show up anywhere in the message,
rather than in the 'attachment well' like it does with HTML and plain text messages.
You can actually achieve a similar level of functionality with HTML mail.
tip works in the last couple versions of Outlook, although there are some quirks.

1. Create an HTML email message and address it to yourself
2. Attach a file, foo.txt for example
3. In the body of the email message, type foo.txt
4. Highlight "foo.txt" and go to Insert | Hyperlink
5. In the "URL" field ("Address" field if Word is your editor), type the full name
of the attachment plus extension (foo.txt in this case)
6. OK out of the dialog
7. Send the message

When you receive the message, you will be able to click
on the link in the body and open the attachment.

Comments (2)

  1. Anonymous says:

    I take it you are not talking about having images inline to your message (using the content-id RFC)?

    I notice that when Outlook does this it does not seem to give a (useful) content-type to the content that is to be included inline.

  2. KC Lemson says:

    Correct, I’m not talking about inline images (given that my example was a text file 🙂

    I cannot repro what you said about a non-useful content-type. Following my steps (using Outlook 2003), I got this:

    Content-Type: text/plain;
    Content-Transfer-Encoding: 7bit
    Content-Disposition: attachment;

    The content-types that Outlook uses come from the registry on the client machine, so is it possible you were testing with a filetype that didn’t have a content-type registered on the sending machine?

    – KC

Skip to main content