Linked Images

How It Works

Linked images are images hosted on a server and displayed in the body of an email via HTML image tags. The email client will retrieve the image from the source indicated in the img tag.

An example linked image is: <img src="https://file.go.gov.kh/yxv0h0.png">.

If you are using the same set of images across multiple emails, an easy way to use linked images in your email is to upload the image to a service like go.gov.kh and reuse the same img tags in your emails.

For step-by-step instructions on how to upload images to GoGovKH, see this.

Unique Image for Each Email

If you are embedding a unique image for each email, you may consider:

  • Programmatically uploading your image to a file hosting service

    • Currently, we do not provide such a service. However, we are looking into possible solutions, please contact us if this could be helpful to your agency.

Sample API Call

{
  "subject": "Test subject",
  "body": "<p>This contains an image</p><br><br><img src='https://file.go.gov.kh/yxv0h0.png'><br><br><p>hello there</p>",
  "recipient": "recipient@gmail.com"
}

The resultingmail:

Last updated