<?xml version="1.0" encoding="ISO-8859-1"?>
<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">

  <component>
    <type>org.exoplatform.services.wcm.newsletter.NewsletterManagerService</type>
    <init-params>
      <value-param>
        <name>workspace</name>
        <value>collaboration</value>
      </value-param>
    </init-params>
  </component>
  
  <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.debug" value="false" />
        <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>

  <external-component-plugins>
    <target-component>org.exoplatform.services.jcr.RepositoryService</target-component>
    <component-plugin>
      <name>add.nodeType</name>
      <set-method>addPlugin</set-method>
      <type>org.exoplatform.services.jcr.impl.AddNodeTypePlugin</type>
      <priority>98</priority>
      <init-params>
        <values-param>
          <name>autoCreatedInNewRepository</name>
          <description>Node types configuration file</description>
          <value>war:/conf/wcm-core/nodetypes/wcm-newsletter-nodetypes.xml</value>
        </values-param>
      </init-params>
    </component-plugin>
  </external-component-plugins>

</configuration>
