Plugin: Email
The Email plugin provides reusable email-related Groovy classes for CPI packages.
Plugin metadata
| Field | Value |
|---|---|
| ID | com.iflowkit.plugin.email |
| Name | iFlowKit Email Plugin |
| Version | 1.0.0 |
| Description | EmailStoreRequest XSD model and Microsoft Graph sendMail payload builder. |
Parameter
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
defaultSenderAddress | string | no | no-reply@iflowkit.local | Fallback 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
- A package includes the Email plugin in
package.json. - Runtime code reads plugin parameters via
PackageContext. - CPI script code constructs or receives an email request.
- 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