[MGNLMAIL-123] Mails sent twice from the Mail Tools App Created: 28/Feb/22  Updated: 28/Feb/22

Status: Open
Project: Magnolia Mail Module
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Jaroslav Simak Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

Steps to reproduce

  1.  Set up SMTP server (FakeSMTP)
  2.  Configure Mail Tools to point to the SMTP
  3. Send test email (testFreemarker)

Expected results

  1. Mail is sent only once

Actual results

  1. Mail is sent twice

Workaround

Development notes

  1. MailVerifyPresenter line 226 sets params.put(MailTemplate.MAIL_TO, userEmailAddress); for the first time
  2. line 243 sets email.addRecipient(RecipientType.TO, new InternetAddress(userEmailAddress)); for the second time

Generated at Mon Feb 12 06:03:51 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.