Preheat oven to 350°F on regular bake (not convection).
Before mixing, ensure the eggs and milk are at room temperature so they blend smoothly with the mayonnaise.
Bring the eggs and milk to room temperature before mixing. Let the eggs sit out for about 30 minutes, and warm the milk for 15–20 minutes (or microwave just a few seconds until the chill is gone). Optional quick method: Place the eggs in a bowl of warm water for 5 minutes to bring them to room temperature fast.
Grease and flour the cake pan or line the bottom with parchment and grease and flour only the sides.
If making 24 minis with the 5‑inch cake, prepare the cake pan as directed. If making minis only, line the mini muffin pans with paper liners.
Combine the flour, baking powder, and salt; set aside.
Beat the sugar, mayonnaise, eggs, and vanilla on medium speed until well blended.
Add half the flour mixture, then half the milk, mixing on low speed. Repeat with the remaining flour and milk.
Fill mini cups 1/2 full; use about 1 cup of batter for the 4.5" pan and 1 1/2 cups for the 6"pan
Bake minis 9-11 minutes; 4.5' 18-22 minutes; 6" cake 22-26 minutes