Skip to main content

Explanation

This script performs the following operations:
  1. SOAP Parse: SOAP message coming from request body is parsed
  2. Email Information Extraction: Recipient, sender, subject, and content information are extracted from SOAP message
  3. Validation: Sender and recipient information is checked
  4. Email Sending: Email is sent via SMTP
  5. SOAP Response: Operation result is returned as response in SOAP format
This script should be run on the request line (Request Policy) because it uses the requestBodyTextFromClient and requestErrorMessageToTargetAPI variables.