For sending mails from server without username & password you have to make sure that SMTP Service is installed & running on Server. Given below the code for sending mail from SMTP -
SmtpClient smtp = new SmtpClient();
smtp.Host = "LOCALHOST"; smtp.Port = 25; smtp.Send(mm);