Writing emails in different languages in Mail.app
If "Automatic by Language" does not give adequate results, you can set the dictionary to a specific language in Edit > Spelling and Grammar > Show Spelling and Grammar.