<?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:mail="http://www.springframework.org/schema/integration/mail"
	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">

	<mail:outbound-channel-adapter id="adapter" mail-sender="mailSender" auto-startup="false"/>

	<bean id="mailSender" class="org.springframework.integration.mail.StubJavaMailSender">
		<constructor-arg>
			<bean class="jakarta.mail.internet.MimeMessage">
				<constructor-arg type="jakarta.mail.Session"><null/></constructor-arg>
			</bean>
		</constructor-arg>
	</bean>

</beans>
