Skip to content

Plugin: Email

The Email plugin provides reusable email-related Groovy classes for CPI packages.

Plugin metadata

FieldValue
IDcom.iflowkit.plugin.email
NameiFlowKit Email Plugin
Version1.0.0
DescriptionEmailStoreRequest XSD model and Microsoft Graph sendMail payload builder.

Parameter

ParameterTypeRequiredDefaultDescription
defaultSenderAddressstringnono-reply@iflowkit.localFallback From address used when EmailMessage.from is empty.

What it provides

The plugin includes reusable email message structures and helpers, including:

  • email attachment representation
  • email message representation
  • Outlook / Microsoft Graph payload adapter

Typical flow

  1. A package includes the Email plugin in package.json.
  2. Runtime code reads plugin parameters via PackageContext.
  3. CPI script code constructs or receives an email request.
  4. The plugin builds the email payload for downstream delivery.

Minimal conceptual example

groovy
def params = PackageContext
  .load(Package.PACKAGE_ID)
  .pluginParametersById('com.iflowkit.plugin.email')

def defaultSender = params.defaultSenderAddress