Depending on the recipient, you should first set the tone and structure of the message. For example, if the receiver is a good friend or someone you’ve known for a long time, you can keep it a bit informal. If it’s your manager that you’re addressing or, say, a large corporation, a thank-you message should best be formal.