In reality, the meaning is far less complicated than it seems. The “M” is simply the first letter of a traditional courtesy title used in formal invitations.
Guests are expected to complete the title before writing their full name. For example, “Mr.”, “Mrs.”, “Ms.”, or “Miss” would follow naturally from that initial letter, depending on personal preference.