Hi Lucd,
I've configured the script according to my need and it works awesome.
I've used rvtools password encryption feature in 3.9.5 to protect my password as well
As rvtools report generation takes time and before the completion of rvtools report generation the sendsmtp got executed
Hence i introduced start -sleep 500 before the smtp code
Thanks