cAWSSES
cAWSSES Standard properties
These properties are used to configure cAWSSES running in the Standard Job framework.
The Standard
cAWSSES component belongs to the AWS and Connectivity families.
Basic settings
Connection |
Select an AWS connection component from the list to reuse the connection details you |
Subject |
Specify the email subject. It can be overriden by the |
From |
Specify the sender’s email address. It can be overriden by the |
To |
Specify one or more destination email addresses. It can be overriden by the |
Return Path |
Specify the email address to which bounce notifications are to be forwarded. It can be |
Reply to Addresses |
Specify the reply-to email address(es) for the message. It can be overriden by the |
Message Headers |
Set the message headers in the corresponding table. Click [+] as many times as required to add message headers |
Advanced settings
Advanced |
Set the optional parameters in the corresponding table. Click |
Usage
Usage rule |
cAWSSES can be a start, middle or |
Limitation |
 n/a |
Sending Email using the cAWSSES component
This scenario applies only to Talend Open Studio for ESB, Talend Data Services Platform and Talend Data Fabric.
This scenario will show you how to use the cAWSSES
component to send emails with Amazon’s SES service.
Dropping and linking the components
-
From the Palette, drag and drop a cAWSConnection, a cTimer, a
cSetBody, a cAWSSES, and a cProcessor
component onto the design workspace. -
Label the components for better identification of their roles and link them
with the Row > Route connection as shown above.
Configuring the components
-
Double-click the cAWSConnection component to display its
Basic settings view in the Component tab. - In the Access Key and Secret Key fields, enter the authentication credentials.
-
Double-click the cTimer component to open its
Basic settings view in the Component tab. -
In the Repeat field, enter
1
to
generate the message exchange one time. Keep the default settings of the other
options. -
Double-click the cSetBody component to open
its Basic settings view in the Component tab. -
Select CONSTANT from the Language drop-down list and type in
"Hello
in the Expression field as
world"
the message body. -
Double-click the cAWSSES component to open its Basic settings view in the Component tab.
-
In the Connection list, select the cAWSConnection component that you have just
configured to connect to Amazon SES service.In the Subject field, enter the email
subject, for example,"Hello"
in this use case.In the From and To fields, enter the sender’s email address and the destination
email address respectively.In the Return Path field, enter the email
address to which bounce notifications are to be forwarded.In the Reply To field, enter the email address to receive
replies. -
Double-click the cProcessor component to
display its Basic settings view in the
Component tab. -
In the Code box, enter the following code to
print theCamelAwsSesMessageId
in the execution
console:System.out.println("CamelAwsSesMessageId: "+exchange.getIn().getHeader("CamelAwsSesMessageId"));
- Press Ctrl+S to save your Route.
Viewing the code and executing the Route
-
Click the Code tab at the bottom of the
design workspace to check the generated code.As shown above, the message flow fromsesproducer_cTimer_1
is
given a payload bysesproducer_cSetBody_1
. Then it is sent to
sesproducer_cAWSSES_1
and processed by
sesproducer_cProcessor_1
. -
Press F6 to execute the Route. The logs of
the message exchange are printed in the console. -
An email is sent to the destination address.
-
When replying the email, the destination is the email address specified in the To field of the cAWSSES component.