This is the code from my blog post describing a workflow based email approval app
- Use a local SMTP / email server like Papercut so that you can send emails from the workflow and see them appear.
- You will need to set all 3 projects to startup. Right-click the solution in VS, choose Set startup projects and make sure all 3 are set to start.
- Run the code.
- Check your email app (Papercut).
- You should see 3 emails, approve or decline as desired.
- You should receive another email summarising the approval responses once they are all complete.
Check that you have the correct URLs in the code. Visual Studio may decide to use different ports. URLs are hard coded at the following locations
- ApproverClient\app.config
- ApprovalWorkflow\Workflow.xamlx (Send Approval Email activity)
- Approval.Web\Web.config
If you decide to push this into IIS rather than IIS Express, the above URLs will change.