Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-1946

Documentation is incorrect for the mail:header-enricher

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.0.4
    • Fix Version/s: None
    • Component/s: Documentation, Mail Support
    • Labels:
      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              abilan Artem Bilan
              Reporter:
              hillert Gunnar Hillert
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: