### Zitadel PHP Client 1.3.6 Help

# Email

Here you will learn, how to set up an OTP SMS for a user.

## First steps

First, we have to initialize the class and set the user id.

use ZitadelPhpClient\User\SetupTwoFactorAuth\SMS; $sms = new SMS($settings); $sms->setUserId("12345678");

## Add the OTP Email method

$sms->add();

To use the function, the email address has to be verified. Otherwise, you'll get an Exception.

## Remove the OTP Email method

$sms->remove();
Last modified: 27 March 2024