SMTP SOAP processing tutorial
Mail notification Automatic reply to mail message

## Example

- The example shows an automatic reply to the sender.
- If the message contains a valid XML structure describing the order SOAP request, it will add the order to the demo tables and reply with a success message.
- If there is no valid structure, it will reply with a failure notice.
- The web page contains configuration instructions.
- It is possible to define the mail account on the server for processing these messages.

An example SMTP send command is :

    smtp_send (
      null,
      'imitko@localhost',
      'dav@localhost' ,
      'Subject: SOAPMethodName: #new_order\r\n\r\n
      <?xml version=\'1.0\' ?>
      <SOAP:Envelope
        xmlns:xsi=\'http://www.w3.org/1999/XMLSchema-instance\'
        xmlns:xsd=\'http://www.w3.org/1999/XMLSchema\'
        xmlns:SOAP=\'urn:schemas-xmlsoap-org:soap.v1\'
        xmlns:dt=\'urn:schemas-microsoft-com:datatypes\'>
          <SOAP:Body>
            <new_order>
              <_CustomerID>CENTC</_CustomerID>
              <_EmployeeID>1</_EmployeeID>
              <_ShipVia>3</_ShipVia>
              <_RequiredDate>2001-05-31</_RequiredDate>
              <_ProductID>26</_ProductID>
              <_Quantity>1</_Quantity>
              <_Discount>0.300000</_Discount>
            </new_order>
          </SOAP:Body>
      </SOAP:Envelope>'
    );