You want to configure the shutdown notification URL.
jobEnd.notificationUrl
AWS will fall into this URL, presumably with query variables that indicate which job has completed (job ID).
You can then indicate that this URL on your server processes your email notifications, assuming that you have already maintained a connection between email messages and job IDs.
https://issues.apache.org/jira/browse/HADOOP-1111
source share