Common.MailDetail md = new Common.MailDetail(); md.IsBodyHtml = true; md.MailEncoding = Encoding.UTF8; md.MailServer = smtp; md.PassWord = MailServerPassWord; md.MessageContent = Body;