title: How to pass configuration to Oozie email action
body: <p>I have a simple oozie workflow that performs a pig actions and sends an email in case it fails. </p>
  
  <p>The email action node:</p>
  
  <pre><code>&lt;action name="send_email_on_error"&gt;
          &lt;email xmlns="uri:oozie:email-action:0.1"&gt;
              &lt;job-xml&gt;oozie-site.xml&lt;/job-xml&gt;
              &lt;to&gt;ilona@aniways.com&lt;/to&gt;
              &lt;subject&gt;Oozie Error&lt;/subject&gt;
              &lt;body&gt;error message[${wf:errorMessage(wf:lastErrorNode())}]&lt;/body&gt;
          &lt;/email&gt;
          &lt;ok to="fail"/&gt;
          &lt;error to="fail"/&gt;
      &lt;/action&gt;
  </code></pre>
  
  <p>I created a oozie-site.xml file and added to it the following properties:</p>
  
  <pre><code>&lt;property&gt;
          &lt;name&gt;oozie.email.smtp.host&lt;/name&gt;
          &lt;value&gt;smtp.gmail.com&lt;/value&gt;
      &lt;/property&gt;
      &lt;property&gt;
          &lt;name&gt;oozie.email.smtp.port&lt;/name&gt;
          &lt;value&gt;587&lt;/value&gt;
      &lt;/property&gt;
      &lt;property&gt;
          &lt;name&gt;oozie.email.from.address&lt;/name&gt;
          &lt;value&gt;ilona@aniways.com&lt;/value&gt;
      &lt;/property&gt;
  </code></pre>
  
  <p>Trying to deploy the job I get an error:</p>
  
  <pre><code>E0701: XML schema error, cvc-complex-type.2.4.a: Invalid content was found starting with element 'job-xml'. One of '{"uri:oozie:email-action:0.1":to}' is expected.
  </code></pre>
  
  <p>How do I pass this necessary configuration to Oozie?</p>