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 Summary
Modifier and TypeMethodDescriptionvoidsendAlreadyRegistered(String email) Tells the owner of an address that someone tried to register it again.voidsendEmailVerification(String email, String token) Asks the owner of an address to confirm it.voidsendPasswordReset(String email, String token) Sends the link that allows choosing a new password.
-
Method Details
-
sendEmailVerification
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
Tells the owner of an address that someone tried to register it again.- Parameters:
email- address the message is sent to.
-
sendPasswordReset
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.
-