Search code examples
javaemail-verification

java: how can i verify an email address to be valid without sending a confirmation e-mail?


when people register to my website i don't want to send them a verification e-mail, i just want to check if that e-mail exists. is there a way to do such a thing ?

using apache-tomcat and java as my main programming language.

thanks a lot!


Solution

  • You can at highest use regex to check if the address is syntactically valid and/or looking up the MX records if the domain is valid, but this still does not guarantee that the email address is legitimate and belongs to the registrant in question. There is really no more reliable way than sending a verification email and waiting for confirmation in a short time-span.