public SendEmail() { // VBConversions Note: Non-static class variable initialization is below. Class variables cannot be initially assigned non-static values in C#. _BCC = new MailAddress(GlobalConst.get_AppSettings("email.info", "*****@*****.**"), "admin"); _BodyEncoding = Encoding.Default; SmtpURL = ConfigurationManager.AppSettings["smtp.server"]; SmtpAcount = ConfigurationManager.AppSettings["smtp.acount"]; SmtpCode = ConfigurationManager.AppSettings["smtp.code"]; DeliveryNotificationOptions = (int)DeliveryNotificationOptions.OnFailure + DeliveryNotificationOptions.OnSuccess; //"massmail.scannet.dk" //ConfigurationManager.AppSettings("adminrolename") }