[master] - some code written for mail sending