@@ -26,7 +26,7 @@ public void onAccountCreatedEvent(AccountCreatedEvent event) {
2626 "Your account have been created successfully." + "\n " +
2727 "If you didn't request this, please contact us." ;
2828
29- emailService .
sendEmail (
"[email protected] " ,
"Account created" ,
body );
29+ emailService .sendEmail (email , "Account created" , body );
3030 }
3131
3232 @ EventListener (EmailVerificationTokenGeneratedEvent .class )
@@ -37,7 +37,7 @@ public void onEmailVerificationTokenGeneratedEvent(EmailVerificationTokenGenerat
3737 "Click here to verify your email: " + link + "\n " +
3838 "If you didn't request this, please ignore this email." ;
3939
40- emailService .
sendEmail (
"[email protected] " ,
"Email verification" ,
body );
40+ emailService .sendEmail (email , "Email verification" , body );
4141 }
4242
4343 @ EventListener (PasswordResetGeneratedEvent .class )
@@ -48,7 +48,7 @@ public void onPasswordResetGeneratedEvent(PasswordResetGeneratedEvent event) {
4848 "Click here to reset your password: " + link + "\n " +
4949 "If you didn't request this, please ignore this email." ;
5050
51- emailService .
sendEmail (
"[email protected] " ,
"Password reset" ,
body );
51+ emailService .sendEmail (email , "Password reset" , body );
5252 }
5353
5454 @ EventListener (PasswordHaveBeenResetedEvent .class )
@@ -58,7 +58,7 @@ public void onPasswordHaveBeenResetedEvent(PasswordHaveBeenResetedEvent event) {
5858 "Your password have been reseted successfully." + "\n " +
5959 "If you didn't request this, please contact us." ;
6060
61- emailService .
sendEmail (
"[email protected] " ,
"Password reseted" ,
body );
61+ emailService .sendEmail (email , "Password reseted" , body );
6262 }
6363
6464 @ EventListener (PasswordChangedEvent .class )
@@ -68,7 +68,7 @@ public void onPasswordChangedEvent(PasswordChangedEvent event) {
6868 "Your password have been changed successfully." + "\n " +
6969 "If you didn't request this, please contact us." ;
7070
71- emailService .
sendEmail (
"[email protected] " ,
"Password changed" ,
body );
71+ emailService .sendEmail (email , "Password changed" , body );
7272 }
7373
7474 @ EventListener (AccountDeletedEvent .class )
@@ -78,7 +78,7 @@ public void onAccountDeletedEvent(AccountDeletedEvent event) {
7878 "Your account have been deleted successfully." + "\n " +
7979 "If you didn't request this, please contact us." ;
8080
81- emailService .
sendEmail (
"[email protected] " ,
"Account deleted" ,
body );
81+ emailService .sendEmail (email , "Account deleted" , body );
8282 }
8383
8484}
0 commit comments