Send a message attachment when confirmed successful job submission.
fixed code formatting