TestFileAttachment
Description
This example shows how use GreenVulcano® ESB to send an email containing attachments.
TestFileAttachment services executes the following operations:
- Reads a file from a directory of input (in this case TestAttach/input)
- Sends an email with this file as attachment
- Moves sent file to another directory (we choose TestAttach/sent)
VulCon Configuration
To configure TestFileAttachment service follow these steps:
- Define the System, Channel and Operations required
- Define the Services
- Implement the flows.
Defining System, Channel and Operations
To define a System, go to VulCon core view and, into Systems element, insert the System GVESB if it is not already present. Inside of it create the Channel TEST_CHANNEL_FILE in which the following operations will be configured:
Attribute/Subelement | Value |
---|---|
name | ScanAttachments
FileCommands:
|
Attribute/Subelement | Value |
---|---|
name | MoveAttachments
FileCommands:
|
Attribute | Value |
---|---|
jndi-name | gvesb.mailServer |
name | SendEmail |
mail-message | content-type="text-html" high-priority="true" sender-display-name="GV ESB" subject="Test send attachments"
|