<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesource.org/schema/mule/core/2.0"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:spring="http://www.springframework.org/schema/beans"
       xmlns:smtp="http://www.mulesource.org/schema/mule/smtp/2.0"
       xmlns:smtps="http://www.mulesource.org/schema/mule/smtps/2.0"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
       http://www.mulesource.org/schema/mule/core/2.0 http://www.mulesource.org/schema/mule/core/2.0/mule.xsd
       http://www.mulesource.org/schema/mule/smtp/2.0 http://www.mulesource.org/schema/mule/smtp/2.0/mule-smtp.xsd
       http://www.mulesource.org/schema/mule/smtps/2.0 http://www.mulesource.org/schema/mule/smtps/2.0/mule-smtps.xsd">

    <smtp:connector name="smtpConnector"
                   bccAddresses="abc@example.com"
                   ccAddresses="bcd@example.com"
                   contentType="foo/bar"
                   fromAddress="cde@example.com"
                   replyToAddresses="def@example.com"
                   subject="subject">
        <smtp:header key="foo" value="bar"/>
        <smtp:header key="baz" value="boz"/>
    </smtp:connector>

    <!-- need too revisit this once tests are working - it's not clear to me what
         key store is being used in the tests -->

    <smtps:connector name="smtpsConnector"
                     bccAddresses="abc@example.com"
                     ccAddresses="bcd@example.com"
                     contentType="foo/bar"
                     fromAddress="cde@example.com"
                     replyToAddresses="def@example.com"
                     subject="subject">
        <smtps:header key="foo" value="bar"/>
        <smtps:header key="baz" value="boz"/>
        <smtps:tls-client path="greenmail-truststore"
                          storePassword="password"/>
        <smtps:tls-trust-store path="greenmail-truststore"
                               storePassword="password"/>
    </smtps:connector>

    <smtp:endpoint name="global1" host="localhost" password="secret" port="123" user="bob"/>
    <smtp:endpoint name="global2" address="smtp://bob:secret@localhost:123"/>
    <smtps:endpoint name="global1s" host="localhost" password="secret" port="123" user="bob"/>
    <smtps:endpoint name="global2s" address="smtps://bob:secret@localhost:123"/>

</mule>