public ViewResult ServiceDetails(AgentContactViewModel agentContact) { MailTemplate objmail = new MailTemplate(); string apiKey = _configuration.GetSection("Appsettings").GetSection("Apikey").Value; var test = objmail.MailSend(agentContact.Email, agentContact.AgentEmail, "Comunity Service Help", "Hi volunteer, <br/> My name is " + agentContact.Name + " and I stay near to your are. I urgently needs your help. Below are the contact information for your reference. <br/> Contact number: " + agentContact.ContactNumber + "<br/> Email Id: " + agentContact.Email + " <br/> Request Description: " + agentContact.RequestDescription, apiKey); return(View()); }