To display last 5 lines of a file

Hi Guys,

I want to echo last 5 lines of a file to a mail. My script getting continuously looped and not getting the output. can anyone help?

#!/bin/bash
read karthick;
tail -5 $karthick;
echo $karthick | mail -s "genius" someone@gmail.com

Thanks
NK

(tail -5 file) | mail -s "test" mymail@xxx.fr

works fine for me on Aix 7

Thanks fundix, it works well now:)