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

	<int:channel id="inputChannel"/>

	<int-mail:header-enricher input-channel="inputChannel" output-channel="mailChannel">
		<int-mail:to value="mailto"/>
		<int-mail:from value="mailfrom"/>
		<int-mail:subject value="With Content Type"/>
		<int-mail:content-type value="text/html"/>
	</int-mail:header-enricher>

	<int:channel id="mailChannel"/>

	<int-mail:outbound-channel-adapter channel="mailChannel"
					host="smtp.gmail.com"
					port="587"
					username="user"
					password="password"
					java-mail-properties="javaMailProperties"/>

	<util:properties id="javaMailProperties">
		<prop key="mail.debug">true</prop>
		<prop key="mail.smtps.auth">true</prop>
		<prop key="mail.smtp.starttls.enable">true</prop>
	</util:properties>

</beans>
