"thx" is the short-form of "Thank You",
We use "thx" heavily in emails. For example, when we see this reply is useful for you, you might reply and said "thx". However, "thx" is better to use when you know the "thx" receiver. Therefore, for someone you are not familiar with, you will use the long-form as "thank you".