Setup the email template
From Edit Event, click the dropdown for Ticket email template. Either choose an existing template, or type in a name for a new template, and click "Add new...".

Using custom variables in the email template
TBA.
Other functionality to customize
In Ticket Types, you can choose whether a ticket is attached as a PDF, or a link is included in the email to download the ticket.