Implemented sending email messages (not tested yet)