Package com.ericbouchut.learndev.auth
Class EmailVerificationMailer
java.lang.Object
com.ericbouchut.learndev.auth.EmailVerificationMailer
Sends the email-verification message. In development the message is
caught by Mailpit (web UI: http://localhost:8025); nothing leaves the
machine.
-
Constructor Summary
ConstructorsConstructorDescriptionEmailVerificationMailer(org.springframework.mail.javamail.JavaMailSender mailSender, String from, Duration tokenTtl) -
Method Summary
-
Constructor Details
-
EmailVerificationMailer
-
-
Method Details
-
sendVerificationEmail
- Parameters:
to- recipient email addressverifyLink- absolute URL containing the RAW token; the raw token exists only in this email and in the URL bar, never in the database or the logs
-