Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAK-51048 - Send emails asynchronously #13376

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

maurercw
Copy link
Contributor

@maurercw maurercw commented Mar 2, 2025

No description provided.

@maurercw
Copy link
Contributor Author

maurercw commented Mar 2, 2025

As an FYI, the review is easier to read if you turn off the whitespace changes since the bulk of the edit was just an indentation change.

}
// Optionally handle exceptions or completion
future.exceptionally(ex -> {
log.error("Error occurred while sending email: " + ex.getMessage());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
log.error("Error occurred while sending email: " + ex.getMessage());
log.error("Error occurred while sending email: {}", ex.toString());

@ottenhoff
Copy link
Contributor

Awesome. What do you see in your Tomcat log now when sending out hundreds of emails? It's basically instant now to the end user (e.g., the instructor sending hundreds of emails)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants