this post was submitted on 25 Jul 2024
118 points (95.4% liked)

Programmer Humor

35334 readers
1 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
 

Thanks for the information though.

you are viewing a single comment's thread
view the rest of the comments
[–] gazter@aussie.zone 3 points 2 years ago (7 children)

Is it possible to put images in an email without them showing up like this?

[–] funkless_eck@sh.itjust.works 7 points 2 years ago* (last edited 2 years ago) (6 children)

yeah it uses this really neat semantic rendering programming language for serving structured documents across servers

It's a bit tricky, but anyone with at least a Masters in CompSci should be able to parse some of it enough to get the gist. Bear in mind that the "source" is abbreviated to src, and "image" similarly. The rest is coding that gives the computer instructions, you'll also need to replace FILENAME in the code with the actual filename. It goes like this

<img src="FILENAME" /> 

Let me know if I can explain it more clearly.

[–] dgriffith@aussie.zone 1 points 2 years ago

Let me know if I can explain it more clearly.

Multi-part MIME containing inline images is actually what you're looking for and it's fairly easy to implement.

Here's an example. They handwave over the html section that actually refers to the inline images that they embed, but that's the basic layout you need.

https://learn.microsoft.com/en-us/openspecs/exchange_server_protocols/ms-oxcmail/7a08211a-760a-41af-8cab-0acf462c4094

load more comments (5 replies)
load more comments (5 replies)