<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/integration/mail"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:beans="http://www.springframework.org/schema/beans"
			 xmlns:int="http://www.springframework.org/schema/integration"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
			https://www.springframework.org/schema/beans/spring-beans.xsd
			http://www.springframework.org/schema/integration
			https://www.springframework.org/schema/integration/spring-integration.xsd
			http://www.springframework.org/schema/integration/mail
			https://www.springframework.org/schema/integration/mail/spring-integration-mail.xsd">

	<header-enricher input-channel="literalValuesInput">
		<to value="test.to"/>
		<cc value="test.cc"/>
		<bcc value="test.bcc"/>
		<from value="test.from"/>
		<reply-to value="test.reply-to"/>
		<subject value="test.subject"/>
		<attachment-filename value="foo.txt"/>
		<multipart-mode value="1"/>
	</header-enricher>

	<int:channel id="expressionsInput">
		<int:queue />
	</int:channel>

	<header-enricher input-channel="expressionsInput">
		<int:poller fixed-delay="100"/>
		<to expression="payload + '.to'"/>
		<cc expression="payload + '.cc'"/>
		<bcc expression="payload + '.bcc'"/>
		<from expression="payload + '.from'"/>
		<reply-to expression="payload + '.reply-to'"/>
		<subject expression="payload + '.subject'"/>
	</header-enricher>

</beans:beans>
