Here, we demonstrate submitting a job through the Python API that uses an email callback.
Note: supervisor_language_flags must contain "mail" or this callback will silently fail.
See the mail_* parameters from Configuration Parameter Reference for how to both setup mail and adjust the various mail templates.