Can you display product variant metafields in order confirmation emails?

Hi There

I’m trying to display variant metafields in my order confirmation emails.

We’ve been including product level metafields for a while now and it has been working fine. But recently we’ve had encounters when we need to just put pre-order/release information on just a few of the variants, not the whole product.

Is it possible to reference the metafields in the order confirmation? I’ve tried variations of the following code but can’t seem to get access to them;

<!-- Variant Metafields -->
{% if line.variant.metafields.custom.release_date %}
<span class="order-list__item-variant release-date-span">
      <strong>Dispatching from:</strong> {{ line.variant.metafields.custom.release_date | date: "%B %e %Y" }} *
</span>
{% endif %}

Its within the {% for line in subtotal_line_items %} for loop, so not sure what I’m missing, or if its even possible. All I can find online is information on how to reference it on product pages.

Any help would be greatly appreciated.

Thanks