Do anyone know what is the trick of embedding a website or a picture with a message to direct someone to a website. For example we all get some type of emal that a business send us with a image. Once click one the image it take you to the site.
I have tried to do this and it does not work. I use img source and a href code embedded within my picture and it did not work.

Do anyone kow the trick to do this?

Dani AI

Generated

Short answer: companies usually send a clickable image by putting an image on a public web server (or CDN) and using it inside the HTML part of the message with a link to the landing page. was right that referencing a local file in Outlook only works on your own PC — recipients cannot access your C: drive.

A practical workflow:

  1. Upload the image to a public HTTPS URL (your web server or your email service provider will host it).
  2. Build an HTML email that references the image by its absolute URL and makes that image link to the desired page.
  3. Send the message as an HTML email (most ESPs and libraries handle correct MIME parts and link rewriting/tracking for you).
  4. Provide alt text and a plain-text fallback link for clients that block images.

Troubleshooting and cautions: many mail clients block remote images by default, so always include meaningful alt text and a visible text link. Test in a few clients (Gmail, Outlook desktop, mobile). Embedding images as inline attachments (CID) or base64 is possible but can increase message size and cause deliverability or compatibility issues; hosting images remotely is the standard approach. For technical details on image attributes and best practices see the MDN reference for the img element and Mailchimp’s advice on using images in email.

img element

Recommended Answers

All 2 Replies

If you are using Outlook, you need to have it reference the location on your computer. You also need to enable "HTML" in the E-Mail in order to add images.

Totally understand, that make sense. But I am talking about the popluation.

How do company send images to a person email address?
Then once click on image it redirect a person to their site?

I understand the concept but don't know how they do it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.