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

Improved: Ensure unique email when sendEmail OFBIZ-13170 #850

Merged

Conversation

nmalin
Copy link
Contributor

@nmalin nmalin commented Nov 6, 2024

When you run the service sendCommEventAsEmail if commEvent to send contains multiple party with the same email (through different contactMech), email will be sent to many times to the same box (depending on the smtp configuration).

To avoid this case, we will ensure that an email is unique for the sender list.

When you run the service sendCommEventAsEmail if commEvent to send contains multiple party with the same email (through different contactMech), email will be sent to many times to the same box (depending on the smtp configuration).

To avoid this case, we will ensure that an email is unique for the sender list.
@JacquesLeRoux
Copy link
Contributor

Did not test (not easy) but after simple review sounds good to me because of the use of emailAlreadyLoad

String sendCc = null;
String sendBcc = null;
// add other parties from roles, collect all email on map to parse it after
List<String> emailAlreadyLoad = UtilMisc.toList(sendTo);

Choose a reason for hiding this comment

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

alreadyLoaded instead of alreadyLoad ?

change name emailAlreadyLoad by alreadyLoaded
Copy link

sonarcloud bot commented Nov 13, 2024

@nmalin nmalin merged commit 22942db into apache:trunk Nov 13, 2024
6 checks passed
@nmalin
Copy link
Contributor Author

nmalin commented Nov 13, 2024

Thanks both for remarks
@JacquesLeRoux yes it's hard to test however we have some integration test that cover any regression :)

@JacquesLeRoux
Copy link
Contributor

👍

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.

3 participants