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

feat: add "null" STMP transport mode #48977

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thlehmann-ionos
Copy link

Summary

If mails ought to be send by other means than rendering messages from
templates and sending them via SMTP-like protocols.

Use-case example

Listening to specific Nextcloud events and pass parameters to a centralized (i.e. REST-based) API that sends e-mails.

Background why not ...

  • customize mail templates: mails should not be delivered by SMTP-like protocols and rendering messages that will never be send is unneeded overhead
  • implement template class and set mail_template_class: same as before
  • listen for BeforeMessageSent and act upon that: would be an option, but it would still render messages that will never be sent and the template data might also have to be enriched with custom information (i.e. in our case the sender's user ID, not their e-mail address)

(Short list of internal reasoning we had before making this pull request.)

Checklist

== Goal

Allow disabling mail delivery altogether.

== Usecase

If mails ought to be send by other means than rendering messages from
templates and sending them via SMTP-like protocols.

Example: listening to specific Nextcloud events and pass parameters to
a centralized (i.e. REST-based) API that sends e-mails.

Signed-off-by: Thomas Lehmann <[email protected]>
thlehmann-ionos added a commit to IONOS-Productivity/nc-server that referenced this pull request Oct 29, 2024
This is an cherry-picked, early commit of the still pending PR nextcloud#48977.

== Goal

Allow disabling mail delivery altogether.

== Usecase

If mails ought to be send by other means than rendering messages from
templates and sending them via SMTP-like protocols.

Example: listening to specific Nextcloud events and pass parameters to
a centralized (i.e. REST-based) API that sends e-mails.

Signed-off-by: Thomas Lehmann <[email protected]>
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.

1 participant