2

I have a code where emails are being sent to the given ID using smtp and if the mail id does not exists then mail wont get delivered. So, I want to capture the email ID's if they do not exist. Can this be done by python script?

1 Answers1

1

Yes. You can use a package called validate_email. The following code returns a boolean:

validate_email('example@example.com')
Oyster773
  • 375
  • 1
  • 10