<?xml version="1.0" encoding="UTF-8"?>
<!--
 This file is part of the Meeds project (https://meeds.io/).

 Copyright (C) 2020 - 2025 Meeds Association contact@meeds.io

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public
 License as published by the Free Software Foundation; either
 version 3 of the License, or (at your option) any later version.
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 Lesser General Public License for more details.

 You should have received a copy of the GNU Lesser General Public License
 along with this program; if not, write to the Free Software Foundation,
 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-->
<configuration
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd http://www.exoplatform.org/xml/ns/kernel_1_2.xsd"
    xmlns="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd">
  <!-- ============================================================================= -->
  <!--                     M A I L      S E R V I C E                                -->
  <!-- ============================================================================= -->
  <component>
    <key>org.exoplatform.services.mail.MailService</key>
    <type>org.exoplatform.services.mail.impl.MailServiceImpl</type>
    <init-params>
      <properties-param>
        <name>config</name>
        <property name="mail.smtp.auth.username" value="${gatein.email.smtp.username}"/>
        <property name="mail.smtp.auth.password" value="${gatein.email.smtp.password}"/>
        <property name="mail.smtp.host" value="${gatein.email.smtp.host}"/>
        <property name="mail.smtp.port" value="${gatein.email.smtp.port}"/>
        <property name="mail.smtp.starttls.enable" value="${gatein.email.smtp.starttls.enable}"/>
        <property name="mail.smtp.auth" value="${gatein.email.smtp.auth}"/>
        <property name="mail.smtp.connectiontimeout" value="${gatein.email.smtp.connectiontimeout}"/>
        <property name="mail.smtp.timeout" value="${gatein.email.smtp.timeout}"/>
        <property name="mail.smtp.writetimeout" value="${gatein.email.smtp.writetimeout}"/>
        <property name="mail.smtp.debug" value="${gatein.email.smtp.debug}"/>
        <property name="mail.smtp.socketFactory.port" value="${gatein.email.smtp.socketFactory.port}"/>
        <property name="mail.smtp.socketFactory.class" value="${gatein.email.smtp.socketFactory.class}"/>
        <property name="mail.smtp.socketFactory.fallback" value="false"/>
      </properties-param>
    </init-params>
  </component>
</configuration>
