When a user performs an action that requires verification, such as signing up for a newsletter or resetting a password, an automated system generates a unique code. This code is then sent to the user's email address. The user must enter this code on the website or app to complete the verification process.