Report abuse

mailing.xml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?xml version="1.0" encoding="UTF-8"?>
<ae:configurations xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://redracer.org/config/mailing ../lib/config/xsd/mailing.xsd">
  <ae:configuration>
    <transports default="localhost">
      <smtp name="localhost">
        <host>localhost</host>
        <port>25</port>
        <username>redracer</username>
        <password>foobar</password>
      </smtp>
    </transports>
  </ae:configuration>
</ae:configurations>

mailing.xsd

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
  targetNamespace="http://redracer.org/config/mailing"
  elementFormDefault="qualified"
  xmlns:mail="http://redracer.org/config/mailing" 
  xmlns:envelope_1_0="http://agavi.org/agavi/config/global/envelope/1.0">

  <import namespace="http://agavi.org/agavi/config/global/envelope/1.0" schemaLocation="../../../../libs/agavi/config/xsd/_envelope.xsd"></import>
  <complexType name="transports">
    <choice minOccurs="1" maxOccurs="unbounded">
      <element name="smtp" type="mail:smtp" minOccurs="0" maxOccurs="unbounded"></element>
      <element name="sendmail" type="mail:sendmail" minOccurs="0" maxOccurs="unbounded"></element>
      <element name="mail" type="mail:mail" minOccurs="0" maxOccurs="1"></element>
    </choice>
    <attribute name="default" type="string" use="required"></attribute>
  </complexType>

  <complexType name="smtp">
    <sequence>
      <element name="host" type="string" minOccurs="1"
        maxOccurs="1">
      </element>
      <element name="port" type="string" minOccurs="1"
        maxOccurs="1">
      </element>
      <element name="encryption" maxOccurs="1" minOccurs="0">
        <simpleType>
          <restriction base="string">
            <enumeration value="ssl"></enumeration>
            <enumeration value="tls"></enumeration>
          </restriction>
        </simpleType>
      </element>
      <element name="username" type="string" maxOccurs="1"
        minOccurs="0">
      </element>
      <element name="password" type="string" minOccurs="0"
        maxOccurs="1">
      </element>
    </sequence>
    <attribute name="name" type="string" use="required"></attribute>
  </complexType>

  <complexType name="mail">
    <attribute name="name" type="string" use="required"></attribute>
  </complexType>

    <complexType name="sendmail">
      <sequence>
        <element name="path" type="string" minOccurs="1"></element>
        <element name="parameter" type="string" minOccurs="1" maxOccurs="1"></element>
      </sequence>
      <attribute name="name" type="string" use="required"></attribute>
    </complexType>

</schema>