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

	<int-mail:outbound-channel-adapter
			id="adapterWithHostProperty"
			password="somepassword"
			java-mail-properties="javaMailProperties"/>

	<util:properties id="javaMailProperties">
		<prop key="mail.imap.socketFactory.class">javax.net.ssl.SSLSocketFactory</prop>
		<prop key="mail.imap.socketFactory.fallback">false</prop>
		<prop key="mail.store.protocol">imaps</prop>
		<prop key="mail.transport.protocol">smtps</prop>
		<prop key="mail.smtps.auth">true</prop>
		<prop key="mail.smtp.starttls.enable">true</prop>
		<prop key="mail.smtp.host">somehost</prop>
		<prop key="mail.smtp.user">someuser</prop>
		<prop key="mail.debug">false</prop>
	</util:properties>
</beans>
