Reading extra fields of an invoice in the thank you note email

Reading extra fields of an invoice in the thank you note email

I have created a custom date field on an invoice but would like to retrieve that date and a few other fields when sending the user the thank you note, I have not been able to find the right info on automation etc. Please could anybody point me in the right direction or advise how this is possible?