• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can we verify email  RSS feed

 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

How can I check with Java that this@thismail.com exists or fake address?

Thanks & best regards
 
Rob Spoor
Sheriff
Posts: 21094
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Send a message to it and wait for a reply. Mail servers (usually?) don't have the option to test their users from the outside without sending an email.

You could first try to validate whether or not the mail server on that domain is running (using a socket on port 25 for thismail.com), but the user itself will not be so easy.
 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Thanks for your rpely

I am trying to validate user email before signing in because mostly some users are making typo while writing their email or entering fake email address. So I thought that before letting them to proceed a head is there any way to validate/verify that the provided mail exists or not

You replied:
Rob Prime wrote:Send a message to it and wait for a reply. Mail servers (usually?) don't have the option to test their users from the outside without sending an email.

This may not be logical in my case. what you think?


You could first try to validate whether or not the mail server on that domain is running (using a socket on port 25 for thismail.com), but the user itself will not be so easy.

but there is possibility that despite configuring socket on port 25 it is configured on 110 or any other port

any other suggestions please

thanks & best regards
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The usual way to validate an email is to send the user a mail that contains a particular URL he needs to click before he can proceed with the registration. The URL would contain an encrypted token (like the userID) so that your server code knows which account to activate if the URL is clicked.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:The usual way to validate an email is to send the user a mail that contains a particular URL he needs to click before he can proceed with the registration. The URL would contain an encrypted token (like the userID) so that your server code knows which account to activate if the URL is clicked.


Of course.
 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:The usual way to validate an email is to send the user a mail that contains a particular URL he needs to click before he can proceed with the registration. The URL would contain an encrypted token (like the userID) so that your server code knows which account to activate if the URL is clicked.


Thanks Ulf Dittmer
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!