How to display variant ID in abandoned cart email?

I would like to have the variant ID in the abandoned cart email, but I cannot see it. I am using the following code.

{% for line in line_items %}
  

{{ line.variant_id }}

{% endfor %}

What am I doing wrong and how can I make the variant ID visible in the abandoned cart email?