Mailing the job log

Hi All,

      i am a begginner in autosys. i want the job log to be mailed if a job gets failed in autosys.please help me with this