<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Configurations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="YADE_configuration_v2.0.0.xsd">
    <JobResource name="ftmailsend" variable="ft" environment_variable="FT"/>
    <Fragments>
        <ProtocolFragments/>
        <NotificationFragments>
            <MailFragment name="mail">
                <Header>
                    <From><![CDATA[from@gmail.com]]></From>
                    <To><![CDATA[to@gmail.com]]></To>
                    <Subject><![CDATA[test]]></Subject>
                </Header>
                <Body><![CDATA[test]]></Body>
                <ContentType><![CDATA[text/plain]]></ContentType>
                <Encoding><![CDATA[7bit]]></Encoding>
            </MailFragment>
        </NotificationFragments>
        <MailServerFragments>
            <MailServerFragment name="mail">
                <MailHost>
                    <BasicConnection>
                        <Hostname><![CDATA[smtp.gmail.com]]></Hostname>
                        <Port><![CDATA[587]]></Port>
                    </BasicConnection>
                    <BasicAuthentication>
                        <Account><![CDATA[info@gmail.com]]></Account>
                        <Password><![CDATA[passowrd]]></Password>
                    </BasicAuthentication>
                </MailHost>
                <QueueDirectory><![CDATA[/tmp/]]></QueueDirectory>
            </MailServerFragment>
        </MailServerFragments>
    </Fragments>
    <Profiles>
        <Profile profile_id="p1">
            <Operation>
                <Copy>
                    <CopySource>
                        <CopySourceFragmentRef>
                            <LocalSource/>
                        </CopySourceFragmentRef>
                        <SourceFileOptions>
                            <Selection>
                                <FilePathSelection>
                                    <FilePath><![CDATA[tmp/incoming/one.txt]]></FilePath>
                                </FilePathSelection>
                            </Selection>
                        </SourceFileOptions>
                    </CopySource>
                    <CopyTarget>
                        <CopyTargetFragmentRef>
                            <LocalTarget/>
                        </CopyTargetFragmentRef>
                        <Directory><![CDATA[tmp/outgoing]]></Directory>
                    </CopyTarget>
                </Copy>
            </Operation>
            <NotificationTriggers>
                <OnSuccess>
                    <MailFragmentRef ref="mail"/>
                </OnSuccess>
                <OnError>
                    <MailFragmentRef ref="mail"/>
                </OnError>
            </NotificationTriggers>
            <Notifications>
                <MailServerFragmentRef ref="mail"/>
            </Notifications>
        </Profile>
    </Profiles>
    <General>
        <Notifications>
            <MailServerFragmentRef ref="mail"/>
        </Notifications>
    </General>
</Configurations>