I have this python script:

```
import time
from email.message import EmailMessage

user_age = "12"
user_name="John"

msg = EmailMessage()
msg['Subject'] = "Test Subject"
msg['From'] = 'test@gmail.com'
msg['To'] = 'test2@gmail.com'
msg.set_content("Test Mesage")

html_message = open('test.html').read()
msg.add_alternative(html_message, subtype='html')

while True:
    with smtplib.SMTP_SSL('smtp.gmail.com', 465) as smtp:
        smtp.login("test@gmail.com", "pass")
        smtp.send_message(msg)

    time.sleep(500)

```

I want to pass a variable like first\_name, age, links from this python script to html template (test.html), access and format them into html.
Something like:

```
<html>
    <head>
     ....
    </head>
    <body>
        Hei user {{user_name}} we recieved your age confirmation! {{user_age}} is it right?
    </body>
</html>

```