tests send_mail function from utils