You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2019/10/03 07:27:42 UTC

[camel] 05/06: Camel-AWS SES: Added a producer example to docs

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit b99efd2e60090dd0e1169e6830ca12d6d936ac06
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Oct 3 09:25:44 2019 +0200

    Camel-AWS SES: Added a producer example to docs
---
 components/camel-aws-ses/src/main/docs/aws-ses-component.adoc | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/components/camel-aws-ses/src/main/docs/aws-ses-component.adoc b/components/camel-aws-ses/src/main/docs/aws-ses-component.adoc
index f052a84..76b451f 100644
--- a/components/camel-aws-ses/src/main/docs/aws-ses-component.adoc
+++ b/components/camel-aws-ses/src/main/docs/aws-ses-component.adoc
@@ -199,6 +199,17 @@ The component is capable of detecting the presence of an AmazonSimpleEmailServic
 If it's the only instance of that type it will be used as client and you won't have to define it as uri parameter.
 This may be really useful for smarter configuration of the endpoint.
 
+== Producer Examples
+
+[source,java]
+--------------------------------------------------------------------------------
+from("direct:start")
+    .setHeader(SesConstants.SUBJECT, constant("This is my subject"))
+    .setHeader(SesConstants.TO, constant(Collections.singletonList("to@example.com"))
+    .setBody(constant("This is my message text."))
+    .to("aws-ses://from@example.com?accessKey=xxx&secretKey=yyy");
+--------------------------------------------------------------------------------
+
 == Dependencies
 
 Maven users will need to add the following dependency to their pom.xml.