Interface AccountMailer

All Known Implementing Classes:
SmtpAccountMailer

public interface AccountMailer
Port that sends the e-mails of the account lifecycle. See the package documentation for its contract.
  • Method Details

    • sendEmailVerification

      void sendEmailVerification(String email, String token)
      Asks the owner of an address to confirm it.
      Parameters:
      email - address the message is sent to.
      token - signed verification token to include in the message.
    • sendAlreadyRegistered

      void sendAlreadyRegistered(String email)
      Tells the owner of an address that someone tried to register it again.
      Parameters:
      email - address the message is sent to.
    • sendPasswordReset

      void sendPasswordReset(String email, String token)
      Sends the link that allows choosing a new password.
      Parameters:
      email - address the message is sent to.
      token - single-use reset token to include in the message.