Class EmailWorkflow

All Implemented Interfaces:
Jsonable

public final class EmailWorkflow extends Workflow
Defines properties for sending a verification code to a user via e-mail.

Our email solution supports domain registration, if you plan to scale email verification to high volumes with Verify v2, please contact Sales in order to get your account configured properly.

  • Constructor Details

    • EmailWorkflow

      public EmailWorkflow(String to)
      Constructs a new e-mail verification workflow.
      Parameters:
      to - The email address to send the verification request to.
    • EmailWorkflow

      public EmailWorkflow(String to, String from)
      Constructs a new e-mail verification workflow with a custom sender address.
      Parameters:
      to - The email address to send the verification request to.
      from - The e-mail address to send the verification request from. Note that you will need to get in touch with the Vonage sales team to enable use of the field.
  • Method Details

    • getFrom

      public String getFrom()
      The e-mail address to send the verification request from, if configured.
      Returns:
      The sender e-mail address, or null if unset.
    • getTo

      public String getTo()
      The email address to send the verification request to.
      Overrides:
      getTo in class Workflow
      Returns:
      The recipient's e-mail address.