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.sg/ogp-logo.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 GoGovSG and reuse the same img tags in your emails.

For step-by-step instructions on how to upload images to GoGovSG, 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.sg/ogp-logo.png'><br><br><p>hello there</p>",
  "recipient": "recipient@agency.gov.sg"
}

The resulting email:

Last updated