Various functionality of Java like Send mail etc