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

Default email sender is not working #10457

Closed
wants to merge 5 commits into from
Closed

Conversation

anatol-sialitski
Copy link
Contributor

@anatol-sialitski anatol-sialitski linked an issue Mar 13, 2024 that may be closed by this pull request
Copy link

codecov bot commented Mar 13, 2024

Codecov Report

Attention: Patch coverage is 88.71795% with 22 lines in your changes are missing coverage. Please review.

Project coverage is 84.55%. Comparing base (e40dc34) to head (ea55e3e).
Report is 1 commits behind head on master.

❗ Current head ea55e3e differs from pull request most recent head 339e3ab. Consider uploading reports for the commit 339e3ab to get more accurate results

Files Patch % Lines
.../com/enonic/xp/mail/impl/MimeMessageConverter.java 85.41% 8 Missing and 6 partials ⚠️
.../java/com/enonic/xp/mail/impl/MailServiceImpl.java 63.15% 7 Missing ⚠️
...n/java/com/enonic/xp/lib/mail/SendMailHandler.java 95.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #10457      +/-   ##
============================================
- Coverage     84.55%   84.55%   -0.01%     
- Complexity    19626    19646      +20     
============================================
  Files          2608     2610       +2     
  Lines         68141    68264     +123     
  Branches       5443     5447       +4     
============================================
+ Hits          57620    57721     +101     
- Misses         7890     7909      +19     
- Partials       2631     2634       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@anatol-sialitski anatol-sialitski marked this pull request as ready for review March 14, 2024 12:30
return this;
}

public Builder attachments( final List<Map<String, Object>> attachments )
Copy link
Contributor

Choose a reason for hiding this comment

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

Attachment must be concrete type

String fileName
ByteSource data
String mimeType
Map<String, String> headers

usually API allows to add attachment one by one, too

private Session session;

private String defaultFromEmail;
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
private String defaultFromEmail;
private volatile String defaultFromEmail;

Because @Modified is called by another thread

@anatol-sialitski anatol-sialitski changed the base branch from master to 7.14 March 18, 2024 12:14
@anatol-sialitski anatol-sialitski changed the base branch from 7.14 to master March 18, 2024 12:14
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.

Default email sender is not working
2 participants