The letters in IELTS General Writing Task can be formal, semi-formal or informal. For example, you write a complaint letter about some service or a product, to thank a friend, to notify the boss about the changed circumstances, to ask for help, apologize, etc.