A Professional Greeting. Your letter should be addressed to your boss. There's a good chance that this letter will merely end up in a file in HR, but it starts with your boss. Assuming this is someone with whom you work reasonably close with on a daily basis, it doesn't have to be super stiff and formal. Specific and professional is the right tone here.
Breaking up is hard to do, but pouring your heart out on paper is rather awkward. There is really no need for any other information in your resignation letter (including a reason __ which is completely optional). No effusive template and formatting effort is required. This is not a letter that is going to be hanging on anyone's wall, and it probably won't even be filed away!