title: Send email from Jenkins job using Groovy Postbuild action
body: <p>Is there a way to send an email from Jenkins job using <a href="https://wiki.jenkins-ci.org/display/JENKINS/Groovy+Postbuild+Plugin" rel="nofollow noreferrer">Groovy Postbuild action</a>? Similar to how it can be done using Jenkins pipeline plugin</p>
  
  <pre><code> mail to: 'devops@acme.com',
       subject: "Job '${env.JOB_NAME}' (${env.BUILD_NUMBER}) is waiting for input",
       body: "Please go to ${env.BUILD_URL}."
  </code></pre>