Skip to main content Skip to complementary content

Configuring the components

Procedure

  1. Double-click the cAWSConnection component to display its Basic settings view in the Component tab.
  2. In the Access Key and Secret Key fields, enter the authentication credentials.
  3. Double-click the cTimer component to open its Basic settings view in the Component tab.
  4. In the Repeat field, enter 1 to generate the message exchange one time. Keep the default settings of the other options.
  5. Double-click the cSetBody component to open its Basic settings view in the Component tab.
  6. Select CONSTANT from the Language drop-down list and type in "Hello world" in the Expression field as the message body.
  7. Double-click the cAWSSES component to open its Basic settings view in the Component tab.
  8. 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.
  9. Double-click the cProcessor component to display its Basic settings view in the Component tab.
  10. In the Code box, enter the following code to print the CamelAwsSesMessageId in the execution console:System.out.println("CamelAwsSesMessageId: "+exchange.getIn().getHeader("CamelAwsSesMessageId"));
  11. Press Ctrl+S to save your Route.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!