To whom it may concern is technically correct grammar. It is always advisable to be in formal writing, especially when you do not know the person you are addressing.