If you are using the Job Manager to submit to a PBS cluster, it's already included in the parameters.
You could also put something in your actual script. I never tested it myself, but Python has email support via "smtplib", see
https://docs.python.org/2/library/email-examples.htmlFinally (but not really...) if you run - again via the Job Manager - on a local machine, you could modify the source code in site-packages/AddOns/JobManager/LocalPlugin/LocalJob.py - however you would need to know the API for the Task class, which we haven't really published :|
This is a cool idea, we'll see if it can be added for the local Job Manager in VNL 2017!