From 66c387bb6f879d855508fc3b91c30a614f0e2a03 Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Thu, 28 Feb 2008 02:04:02 +0000 Subject: [PATCH] Added reference documentation for MailTargetAdapter. --- .../reference/src/adapters.xml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/spring-integration-reference/reference/src/adapters.xml b/spring-integration-reference/reference/src/adapters.xml index 91eeb24534..e39f2f0e08 100644 --- a/spring-integration-reference/reference/src/adapters.xml +++ b/spring-integration-reference/reference/src/adapters.xml @@ -83,6 +83,31 @@ examples, see . +
+ Mail Adapters + + Spring Integration currently provides support for outbound email only with the + MailTargetAdapter. This adapter delegates to a configured instance of Spring's + JavaMailSender, and its various mapping strategies use Spring's + MailMessage abstraction. By default text-based mails are created when + the handled message has a String-based payload. If the message payload is a byte array, then that will + be mapped to an attachment. + + + The adapter also delegates to a MailHeaderGenerator for providing the + mail's properties, such as the recipients (TO, CC, and BCC), the from/reply-to, and the subject. + message); +}]]> + A static implementation is available out-of-the-box, but typically most of the properties would need to be + dynamically generated based on the message itself. The following is an example of a configured + mail adapter. + + + +]]> + +
Stream Adapters