send mail functions file