<?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 http://www.springframework.org/schema/beans/spring-beans.xsd">

	<bean id="mailFacade" class="com.casic.PgInterface.core.ext.mail.MailFacade">
		<property name="mailHelper" ref="mailHelper"/>
	</bean>

	<bean id="mailHelper" class="com.casic.PgInterface.core.ext.mail.MailHelper">
		<property name="defaultMailServerInfo">
			<bean class="com.casic.PgInterface.core.ext.mail.MailServerInfo">
				<property name="host" value="${mail.host}" />
				<property name="username" value="${mail.username}" />
				<property name="password" value="${mail.password}" />
				<property name="smtpAuth" value="${mail.smtp.auth}"/>
				<property name="smtpStarttls" value="${mail.smtp.starttls.enable}"/>
				<property name="mode" value="${mail.mode}"/>
				<property name="testMail" value="${mail.test.mail}"/>
				<property name="defaultFrom" value="${mail.default.from}"/>
			</bean>
		</property>
	</bean>

</beans>