Added a basic send mail function