How to remove wrong mail ids from gmail contacts automatically
The eternal struggle of managing contacts in Gmail!
There are a few ways to remove wrong mail IDs from Gmail contacts automatically. Here are a few methods:
Method 1: Using Gmail's built-in feature
Gmail has a feature called "Remove duplicates" that can help you remove incorrect email addresses from your contacts. To use this feature:
- Go to your Gmail contacts page.
- Click on the "More" menu and select "Remove duplicates".
- Gmail will scan your contacts and remove any duplicates, including incorrect email addresses.
Method 2: Using a third-party add-on
There are several third-party add-ons available that can help you remove incorrect email addresses from your Gmail contacts. Here are a few options:
- Clean Email: This add-on can help you remove duplicates, incorrect email addresses, and even merge contacts. You can install it from the Chrome Web Store.
- Contact Cleaner: This add-on can help you remove duplicates, incorrect email addresses, and even remove contacts that are no longer active. You can install it from the Chrome Web Store.
- Gmail Contact Cleaner: This add-on can help you remove duplicates, incorrect email addresses, and even merge contacts. You can install it from the Chrome Web Store.
Method 3: Using a script
If you're comfortable with coding, you can use a script to remove incorrect email addresses from your Gmail contacts. Here's an example script you can use:
- Go to the Google Apps Script editor by clicking on the gear icon in the top right corner of your Gmail contacts page and selecting "See all settings".
- Click on the "Scripts" tab and click on "New script".
- Paste the following script into the editor:
function removeIncorrectEmails() { var contacts = ContactsApp.getContacts(); var incorrectEmails = [];
for (var i = 0; i < contacts.length; i++) { var contact = contacts[i]; for (var j = 0; j < contact.getEmails().length; j++) { var email = contact.getEmails()[j]; if (!isValidEmail(email)) { incorrectEmails.push(email); } } }
for (var i = 0; i < incorrectEmails.length; i++) { var email = incorrectEmails[i]; var contact = ContactsApp.getContact(email); if (contact) { contact.removeEmail(email); } } }
function isValidEmail(email) { // You can customize this function to check if an email is valid // For example, you can check if the email contains a valid domain return email.includes("@"); }
4. Save the script and click on the "Run" button to execute it.
Note: Before using any of these methods, make sure to backup your contacts to prevent any accidental changes.