this post was submitted on 25 Jul 2024
116 points (95.3% liked)

Programmer Humor

32476 readers
286 users here now

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

Rules:

founded 5 years ago
MODERATORS
 

Thanks for the information though.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 3 months ago (7 children)

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

[–] [email protected] 7 points 3 months ago* (last edited 3 months 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.

[–] [email protected] 10 points 3 months ago (4 children)

I feel like the level of snark in your reply is... High. It doesn't make for a pleasant interaction, and it doesn't help make lemmy a nice place to be.

So, if the image you want to put into your email is not hosted somewhere, what's the best way to go about this, ensuring compatibility?

[–] [email protected] 1 points 2 months ago* (last edited 2 months ago)

So, if the image you want to put into your email is not hosted somewhere, what’s the best way to go about this, ensuring compatibility?

You can base64-encode the image file. It's super-jank, but it works, even in Outlook.

Example: https://www.base64-image.de/tutorial

load more comments (3 replies)
load more comments (4 replies)
load more comments (4 replies)