Salesforce Lightning

For setting an email template navigate to Portal Settings.

Enter the Portal URL and Select the email template. Click on the Save to set an email template.