The email Template automatically changes, when you add a custom message to your invite request.
The reason for your request not sending a custom message, is that you may already have send an invite to that specific Email. Discourse automatically just resend the first invite made to a Email, when the user has already been invited