Reply To: Last name in confirmation email

This is the code in my form settings:

First Name
[thename]
Last Name
[custom text LastName * maxlength=”50″ title=”Last Name”]

I try this in the html email but it doesn’t work:

Name
[thename] [LastName]

I also tried this and it doesn’t work:

Name
[thename]
[custom text LastName]

Please explain what I should put in my html email source code so that I can get firstname and lastname in email.

Thanks.