IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası
  sohbet

Yeni Konu aç Cevapla
 
LinkBack Seçenekler Stil
Alt 07 Mart 2010, 15:38   #1
Çevrimdışı
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)
C#.NET MAIL Gonderme..




Kod:   Kodu kopyalamak için üzerine çift tıklayın!
#region SMTP Mail Gönder public bool sendEmail( string pEmail, string pPassword, string pTo, string pSubject, string pBody, System.Web.Mail.MailFormat pFormat, string pAttachmentPath) { try { System.Web.Mail.MailMessage myMail = new System.Web.Mail.MailMessage(); myMail.Fields.Add ("http://schemas.microsoft.com/cdo/configuration/smtpserver", "smtp.webadresi.gov.tr"); myMail.Fields.Add ("http://schemas.microsoft.com/cdo/configuration/smtpserverport", "25"); myMail.Fields.Add ("http://schemas.microsoft.com/cdo/configuration/sendusing", "2"); myMail.Fields.Add ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate","1"); myMail.Fields.Add ("http://schemas.microsoft.com/cdo/configuration/sendusername", pEmail); myMail.Fields.Add ("http://schemas.microsoft.com/cdo/configuration/sendpassword", pPassword); /*myMail.Fields.Add ("http://schemas.microsoft.com/cdo/configuration/smtpusessl", "true");*/ myMail.From = pEmail; myMail.To = pTo; myMail.Subject = pSubject; myMail.BodyFormat = pFormat; myMail.Body = pBody; if (pAttachmentPath.Trim() != "") { MailAttachment MyAttachment = new MailAttachment(pAttachmentPath); myMail.Attachments.Add(MyAttachment); myMail.Priority = System.Web.Mail.MailPriority.High; } System.Web.Mail.SmtpMail.SmtpServer = "smtp.webadresi.gov.tr:25"; System.Web.Mail.SmtpMail.Send(myMail); return true; } catch (Exception ex) { throw; } } #endregion


 
Alıntı ile Cevapla

IRCForumlari.NET Reklamlar
sohbet odaları sohbet odaları Benimmekan Mobil Sohbet
Cevapla

Etiketler
c#net, gonderme, mail


Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
 
Seçenekler
Stil

Yetkileriniz
Konu Acma Yetkiniz Yok
Cevap Yazma Yetkiniz Yok
Eklenti Yükleme Yetkiniz Yok
Mesajınızı Değiştirme Yetkiniz Yok

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodu Kapalı
Trackbacks are Kapalı
Pingbacks are Açık
Refbacks are Açık


Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar Son Mesaj
f5 memo gonderme KaraLahana mIRC Scripting Sorunları 5 09 Nisan 2013 13:04
C#.NET MAIL Gonderme. CoKraiL C# 0 19 Ekim 2010 17:02
Mail Gonderme Lyki0n mIRC Scripting Sorunları 2 16 Ekim 2007 10:23