Test code to send mail in server.