Skip to content

feat: more mail sending backends and plugability #9608

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

Draft
wants to merge 83 commits into
base: master
Choose a base branch
from

Conversation

matmair
Copy link
Contributor

@matmair matmair commented Apr 30, 2025

This introduces models to track mail delivery and receiving - and mail processing.

Todo:

  • Mail receiving
  • Passing received mails to plugins
  • Passing outgoing mails to plugins
  • Admin UI to view mails
  • doc improvements
  • maybe: send test mail

Closes #7950
Closes #7951

I have validated sending against:

  • SMTP with cpanel
  • SMTP with Postfix
  • Sending / receiving with Mailgun
  • NOT - avoid them! - Sending / receiving with Sendgrid
  • Sending with Mailjet

I have validated receiving againsz:

  • Mailgun
  • Mailjet

Copy link

netlify bot commented Apr 30, 2025

Deploy Preview for inventree-web-pui-preview ready!

Name Link
🔨 Latest commit d15fa63
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/684a0b2d25d83b0008de26cf
😎 Deploy Preview https://deploy-preview-9608--inventree-web-pui-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 89 (🔴 down 8 from production)
Accessibility: 81 (no change from production)
Best Practices: 100 (no change from production)
SEO: 78 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@matmair matmair changed the title Matmair/issue7950 feat: Better Mail Methods Apr 30, 2025
@matmair matmair marked this pull request as draft April 30, 2025 16:47
@matmair matmair self-assigned this Apr 30, 2025
@matmair matmair added enhancement This is an suggested enhancement or new feature api Relates to the API feature User Interface Related to the frontend / User Interface labels Apr 30, 2025
@matmair matmair added this to the 1.0.0 milestone Apr 30, 2025
Copy link

codecov bot commented Apr 30, 2025

Codecov Report

Attention: Patch coverage is 97.72152% with 9 lines in your changes missing coverage. Please review.

Project coverage is 85.57%. Comparing base (6b261e1) to head (d15fa63).
Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
src/backend/InvenTree/InvenTree/helpers_email.py 40.00% 6 Missing ⚠️
src/backend/InvenTree/InvenTree/middleware.py 50.00% 2 Missing ⚠️
src/backend/InvenTree/InvenTree/settings.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9608      +/-   ##
==========================================
- Coverage   86.34%   85.57%   -0.77%     
==========================================
  Files        1232     1238       +6     
  Lines       54154    55844    +1690     
  Branches     2248     2259      +11     
==========================================
+ Hits        46758    47789    +1031     
- Misses       6827     7483     +656     
- Partials      569      572       +3     
Flag Coverage Δ
backend 88.36% <97.70%> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@matmair matmair changed the title feat: Better Mail Methods feat: more mail sending backends and plugability Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Relates to the API enhancement This is an suggested enhancement or new feature feature User Interface Related to the frontend / User Interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FR] Add support for incoming email for plugins [FR] Improve Email handeling
2 participants