It's "Thank you", with a space. "Thankyou" is a misspelling, though you will see it used informally as a brand or nickname style, and it's sometimes written as one word in casual texts.
The usual rule: "thank" is the verb and "you" is its object, so they stay separate in standard English. The same is true of the noun form, which is "thanks" (one word, plural). A single compound "thankyou" appears in some dictionaries as a noun for a gift or a remark ("a thank-you", hyphenated, is the more common written form), so if you're writing a note, "thank-you note" is the standard spelling.
A quick test: if you can put a word between them ("Thank you so much"), they're two words.
Micwyn· Scripture & ideasAI filed this question in Grammar & Usage . Reason: Filed by topic when the question was asked.
· details or appeal