In reality, the meaning is much less complicated than it seems. The “M” is simply the first letter of a traditional honorific used in formal invitations.
Guests should complete the title before writing their full name. For example, depending on personal preference, the initials would naturally be “Mr.,” “Mrs.,” “Mrs.,” or “Miss.”