The more correct way to address The Queen:
beginning: Madam
conclusion: I have the honour to be, Madam, Your Majesty's most humble and obedient servant.
For other royals it's the same, with some changes where necessary: Madam or Sir, Your Royal Highness.
These are formal.
According to the...