4/19/2013 Finished the function to send mail after query data from db