string strTo = email;
string strFrom = "mail@applemedicalcenter";
string strSubject = "New Appointment";
string msg = "Hi, Admin\n" + "\n"
+ " " + "Mr/Mrs: " + name + " had sent a request for a new appointment.His details are mentioned below:\n"
SmtpMail.SmtpServer = "localhost";
SmtpMail.Send(strFrom, strTo, strSubject, msg);
status = true;