Kien Charles
Newbie
- Oct 26, 2020
- 9
- 4
Just see MailVeri has this service with very best price. I think you should tryDo you know any tools to verify gmail only? Should I try Zerobounce, Clearout, MailVeri? Appreciate for your advice guys.
Just see MailVeri has this service with very best price. I think you should tryDo you know any tools to verify gmail only? Should I try Zerobounce, Clearout, MailVeri? Appreciate for your advice guys.
is it working? the price is in comparison to other solutions quite low. What experience do you have (maybe A/B testing with ZeroBounce etc?)I use Sky Email Verifier, you can contact me on DM if you want to forlife activated version
I personally do not trust a business that uses the .xyz domain extension. But that's just me, they may be providing a good service though.I completely agree! ListClean.xyz truly stands out in the competition, making it an excellent choice for email verification.
import smtplib
import dns.resolver
def check_email(email):
domain = email.split('@')[1]
try:
# Get MX record for the domain
mx_records = dns.resolver.resolve(domain, 'MX')
mx_record = mx_records[0].exchange.to_text()
# Connect to the mail server
server = smtplib.SMTP(mx_record)
server.helo() # Start SMTP handshake
server.mail('[email protected]') # Sender email
code, _ = server.rcpt(email) # Check the recipient
server.quit()
return code == 250 # 250 means the email is valid
except Exception as e:
return False
# Example usage
email_list = ["[email protected]", "[email protected]"]
for email in email_list:
if check_email(email):
print(f"{email} is valid.")
else:
print(f"{email} is invalid.")