Verification error cannot be logged in. You need to re-enter the verification code or send a new verification code to your mailbox. To implement this function, I used the knowledge of how to send emails to my mailbox and obtain logon ip addresses.
Verification error cannot be logged in. You need to re-enter the verification code or send a new verification code to your mailbox. To implement this function, I used the knowledge of how to send emails to my mailbox and obtain logon ip addresses.
During this period, the login function of our system was modified. In order to be more secure, the mail verification function was added. When a user logs on, he or she determines whether the logon ip address has been previously logged on. If not, he or she needs to send a verification code to the mailbox and then enter the verification code he or she received before logging on, if the verification code is correct and the time does not exceed the specified time, you can log on and write down the ip address and time of the login. If you log on with this ip address later, you do not need to verify it. If the verification code expires, the verification code must be resent. Verification error cannot be logged in. You need to re-enter the verification code or send a new verification code to your mailbox. To implement this function, I used the knowledge of how to send emails to my mailbox and obtain the logon ip address. Below, you can view it later.
Send Email:
Download the phpmail compressed package, decompress it, and copy the extracted file to the project. Introduce files to the project.
The Code is as follows:
Require ("phpmailer/class. phpmailer. php"); // the file path depends on the path in your project.