adding send mail functions