Class OTP.Email.Discovery.SendParameters

    • Constructor Detail

      • OTP.Email.Discovery.SendParameters

        OTP.Email.Discovery.SendParameters(String emailAddress, String loginTemplateId, Locale locale)
      • OTP.Email.Discovery.SendParameters

        OTP.Email.Discovery.SendParameters(String emailAddress, String loginTemplateId)
      • OTP.Email.Discovery.SendParameters

        OTP.Email.Discovery.SendParameters(String emailAddress)
    • Method Detail

      • getLoginTemplateId

         final String getLoginTemplateId()

        Use a custom template for login emails. By default, it will use your default email template. The template must be a template using our built-in customizations or a custom HTML email for OTP - Login.

      • getLocale

         final Locale getLocale()

        The locale is used to determine which language to use in the email. Parameter is a []IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. "en". Currently supported languages are English ("en"), Spanish ("es"), and Brazilian Portuguese ("pt-br"); if no value is provided, the copy defaults to English.