My sql job had only one step.So I added another step to it and in step 2 of the job, I added the below code
declare @body1 varchar(8000)
select top 1 @body1 = [Message] from msdb.dbo.sysjobhistory A INNER JOIN msdb.dbo.sysjobs B ON B.Job_id = A.Job_id
where B.Name = <<JobNaMe>> and A.step_id =1 order by instance_id desc
EXECUTE msdb.dbo.sp_send_dbmail @profile_name = <<YourMail profile>>
,@recipients = <<RecipeintEmail>>,@subject =<<Your subject>>,@body = @body1
It works like a magic.