Esempio n. 1
0
        protected void btnMailKaydet_Click(object sender, EventArgs e)
        {
            //AyarIslemleri ayarimiz = new AyarIslemleri(firma);
            string serverimiz = txtMailServer.Value;
            string kimden     = txtMailKimden.Text;
            int    port       = Int32.Parse(txtMailPort.Text);
            string username   = txtMailKullanici.Text;
            string pw         = txtMailSifre.Text;
            string adres      = txtMailAktif.Text;
            string aktif      = txtMailAktif.Text;

            if (!String.IsNullOrEmpty(serverimiz))
            {
                using (radiusEntities dc = MyContext.Context(KullaniciIslem.firma()))
                {
                    AyarIslemleri ayarlar = new AyarIslemleri(dc);
                    ayarlar.MailAyarKaydetR(serverimiz, kimden, port, username, pw, aktif);
                }
            }
        }