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

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

mail sending works now

parent 1ac9a9ed
2 merge requests!203Just trivial merge back from master to development,!194Merge Master Bugfix back to Development
......@@ -409,20 +409,13 @@ public class ReviewService {
reviewRepository.save(review);
for (User u : authorityService.findAllUsersWithAuthority("ROLE_REVIEW_MANAGER")) {
LOGGER.info("Found user: " + u.getEmail());
LOGGER.info(mailService.toString());
Boolean result = mailService.sendEmail(
mailService.sendEmail(
u.getEmail(),
"NEW REVIEW REQUESTED",
userO.get().getEmail() + " requested a review for " + request.getResource(),
false,
false
);
if (result.equals(true)) {
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