<p>You don't need any plugins.  You can send an e-mail from your Pipeline using <a href="https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#mail-mail" rel="nofollow noreferrer">the <code>mail()</code> step</a>.  You can respond to the input step by using the REST API as documented in <a href="https://stackoverflow.com/a/50606237/1824868">this answer on Stack Overflow</a>.  Put the two together and you should be able to craft an e-mail that contains buttons for responding to the input.</p>

CC BY-SA 4.0
2019-10-09T22:48:27.223Z
2019-10-09T22:48:27.223Z
jayhendren
<p>There is User input functionality in the declarative pipeline which prompt on the Jenkins console but it's a headache to login every time on console and select the appropriate action.</p>

<p>So I want to implement such a thing via mail for User input, For example User will get the Input via mail where there are two URL's for "Approval" or "Reject" respectively, If User select Approval then proceeded otherwise not. Here need to pass input on the pipeline on runtime.</p>

<p>Are there any plug-ins for same ?</p>

<jenkins><continuous-integration><jenkins-plugins><groovy>
Is it possible to send email notification for Input (GO/NOGO) from a pipeline
Nullpointer
# Is it possible to send email notification for Input (GO/NOGO) from a pipeline

(Asked by: username_0 on 2019-10-09)

There is User input functionality in the declarative pipeline which prompt on the Jenkins console but it's a headache to login every time on console and select the appropriate action.

So I want to implement such a thing via mail for User input, For example User will get the Input via mail where there are two URL's for "Approval" or "Reject" respectively, If User select Approval then proceeded otherwise not. Here need to pass input on the pipeline on runtime.

Are there any plug-ins for same ?

**Tags:** jenkins, continuous-integration, jenkins-plugins, groovy


---

## 1 answers

### Answer by username_1 on 2019-10-09. Score: 3 | Accepted answer

You don't need any plugins. You can send an e-mail from your Pipeline using [the `mail()` step](https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#mail-mail). You can respond to the input step by using the REST API as documented in [this answer on Stack Overflow](https://stackoverflow.com/a/50606237/1824868). Put the two together and you should be able to craft an e-mail that contains buttons for responding to the input.


---

