Skip to content

Conversation

@arnelap
Copy link
Contributor

@arnelap arnelap commented Nov 26, 2025

Was looking at old git issues / feature requests.
#160 Implement mailcheck.js
Seems Mailcheck has been abandoned so i didn't include it.

Uses a Levenshtein distance-based algorithm to suggest the nearest domain.
Suggestion is shown above the email field.

Can be turned on under MC4WP > Form > Settings (Off by default).

Checks these domains, can be overwritten with filter mc4wp_email_typo_checker_domains
[
'gmail.com',
'yahoo.com',
'hotmail.com',
'outlook.com',
'icloud.com',
'aol.com',
'live.com',
'msn.com',
'me.com',
'mac.com',
'googlemail.com',
'ymail.com',
'protonmail.com',
'mail.com',
'gmx.com',
'zoho.com'
]

@dannyvankooten
Copy link
Member

Nice! I've added some thoughts, but looks 90% good to me. 👍 Most important for me is if we can load the JS only when a form has email typo check enabled.

when i  put it in front of the email field it can in some layouts push the field to the next line where it used to be on the same line with the field label, changing it from 1 line to 3 lines... when i put it behind the field the browser build in suggestions overlap it... I guess for now  giving it a class so people can change the position via css if they want, what do you think?
@dannyvankooten dannyvankooten merged commit b34942f into ibericode:main Dec 10, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants