Inject HTML in Shopify confirmation mail

Topic summary

A developer is building a Shopify app that supplements product information from an external source and needs to customize the order confirmation email.

Goal:

  • Add a custom HTML block (containing a link and text) to Shopify’s automated confirmation emails sent after successful payment
  • Placement should be at the beginning or end of the email

Current Status:

  • The developer is uncertain about the technical approach to inject HTML into Shopify’s confirmation emails
  • Seeking guidance on implementation methods

This appears to be an open question with no responses yet, so no solution or alternative approaches have been discussed.

Summarized with AI on October 28. AI used: claude-sonnet-4-5-20250929.

I’m developing a Shopify app that allows you to complete certain product information from an external app.

I have one last step left: managing the email confirmation.
When the end user pays for a product and the payment is accepted, they will receive a confirmation email from Shopify.

What I’d like is to be able to add a small HTML block with a link and a short text at the beginning or end of this email.

But I’m a little lost on how to do this. Do you know how I can inject a piece of HTML code into the Shopify confirmation email?

1 Like