Skip to content

Conversation

@NMantek
Copy link

@NMantek NMantek commented Aug 20, 2025

This MR adds a new Interceptor used to override email settings using conditions similar to the allready existing conditonBlocks.

Below is a example config for the new Interceptor.

  saveInterceptors {
    EmailOverride {
      model = EmailOverrideInterceptor
      config {
        1 {
          conditions.OR1.AND1 = 1.field.select = firstValue
          isTrue {
            admin {
              senderEmail = firstEmail@domain.tld
            }
          }
          else {
            admin {
              senderEmail = secondEmail@domain.tld
            }
          }
        }
      }
    }
  }

@tlueder tlueder merged commit 28b7968 into JAK0TA:main Aug 22, 2025
1 check failed
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.

2 participants