Added function send_mail: Not tested