This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 06b13545 authored by Cont Deploy's avatar Cont Deploy
Browse files

log mail sending

parent 5cfd695e
2 merge requests!203Just trivial merge back from master to development,!194Merge Master Bugfix back to Development
......@@ -409,13 +409,19 @@ public class ReviewService {
reviewRepository.save(review);
for (User u : authorityService.findAllUsersWithAuthority("ROLE_REVIEW_MANAGER")) {
mailService.sendEmail(
u.getEmail(),
"NEW REVIEW REQUESTED",
userO.get().getEmail() + " requested a review for " + request.getResource(),
false,
false
);
if (
mailService.sendEmail(
u.getEmail(),
"NEW REVIEW REQUESTED",
userO.get().getEmail() + " requested a review for " + request.getResource(),
false,
false
)
) {
LOGGER.info("Sent mail to " + u.getEmail());
} else {
LOGGER.warn("Failed to send mail to " + u.getEmail());
}
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment