Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Duplicate
-
2.0.4
-
None
-
None
Description
The reference documentation mentions the following example:
http://static.springsource.org/spring-integration/reference/htmlsingle/#mail-namespace
<mail:header-enricher subject="Example Mail" to="[email protected]" cc="[email protected]" bcc="[email protected]" from="[email protected]" reply-to="[email protected]" overwrite="false"/>
However, in 2.0.4 the mail:header-enricher is configured through sub-elements. The following example will work:
<int:channel id="mailchannel"/> <int-mail:header-enricher input-channel="mailchannel" output-channel="mail" > <int-mail:subject value="You Have Mail"/> <int-mail:to value="[email protected]"/> <int-mail:cc value="[email protected]"/> <int-mail:bcc value="[email protected]"/> <int-mail:from value="[email protected]"/> <int-mail:reply-to value="[email protected]" /> </int-mail:header-enricher> <int-mail:outbound-channel-adapter id="mail" host="localhost" username="test" password="test" />
Please update the documentation.