Setting up the Email Input sample
The Email Input part of the sample adds a third message flow:
-
The getemail message flow: This message flow processes the email that is sent
by the Email Output node, and filters the email to either a
WebSphere MQ queue, or saves the attachment to a file by
using the File Output node.
This message flow is not automatically deployed by the Email sample. The
getemail.msgflow,
email_input.esql, and
EmailInputSample.bar files are created in the example
project along with the required WebSphere MQ queue 'EMAILOUT'.
Prerequisite: Before you can use this example, you must first set the following
properties and configurations:
-
Follow the instructions that are described in
Receiving emails to
create the required configurable service and security identity objects.
Alternatively you can choose to enter the email server URL directly on the
EmailInput node Email server property instead
of using a configurable service.
-
When the configurable service and security identity objects have been created,
open the EmailInput node properties in the getemail message flow.
-
On the Basic tab, change the value of the
Email server property to the full name of your
configurable service. For example:
myEmailConfigurableServiceName, or enter the email
server URL directly, in the format
protocol://hostname:port. For example,
pop3://myemailserver.com:12345.
-
On the Security tab, change the value of the
Security identity property to the full name of
the security identity object that you have created by using the
mqsisetdbparms command. For example,
mySecurityIdentity.
-
Optional: On the Basic tab of the File
Output node, change the value of the Directory
property to the full file directory path of the output directory location where
the attachment file is to be saved. The default is
c:\temp.
-
Save the changes to the message flow.
-
Open the broker archive file EmailInputSample.bar.
On the Prepare tab, click
Build Broker Archive and click
save.
-
Deploy the EmailInputSample.bar file to the
existing broker execution group EmailExecGroup.
To do this, click and drag the broker archive file onto the execution group.
You can now run the Email Input part of this sample, see
Running the sample for more information.
Back to sample home