send mail functionality of operator

file that take care of sending mail from website could be run on webhost could not be run on localhost.