Email verification - what methods

I just wanted to ask the email verification procedure, which is the best method. So far I have a class that stores information from the register.aspx form, then I send an email to the user, but what should I send him if I send the user a guide ?.

Also, my membership class, which stores the register data, is stored in the session, it is a good idea, because if the user session expires, then the membership class will be nothing, and the user will be asked to register again in the session. Timeout of the web page, is this a good method?

But what if I send the user a guide and then save the user data in the database using guid and then check the manual by email with the corresponding user pointer in the database, what should I do?

In addition, I have a regex that checks the correctness of the email address, it is not so good, and I did not check it correctly, is there a free api email check there?

I am using ASP.NET VB.

+3
source share
4 answers

Here is what I would do:

1) Ask the user by email

2) Confirm Email with Regex

3) , (DateTime.Now), , . .

4) URL

5) , , (, -) .

+3

- Regex.

API , , , , SMTP MX-Records ( ), ..

- mailboxlayer.com

+2

, GUID. "". , GUID. "". "" .

- .

+1
source

In .Net you should check email addresses like this. See this question for more details .

MailAddress address = new MailAddress(input)

This throws an exception if the email address is invalid.

0
source

Source: https://habr.com/ru/post/1780106/


All Articles