02-19-2012، 07:26 PM
با سورس زیر توی سی شارپ میتونی ایمیل ارسال کنی :
کد:
SmtpClient MyMail = new SmtpClient();
MailMessage MyMsg = new MailMessage();
MyMail.Host = "mail.yoursite.com";
MyMsg.To.Add(new MailAddress("Receieption Email"));
MyMsg.Subject = "You Subject";
MyMsg.SubjectEncoding = Encoding.UTF8;
MyMsg.IsBodyHtml = true;
MyMsg.From = new MailAddress("Your Email", "Your Name");
MyMsg.BodyEncoding = Encoding.UTF8;
MyMsg.Body = "Your Body";
MyMail.UseDefaultCredentials = false;
NetworkCredential MyCredentials = new NetworkCredential("Your Email", "Your Password");
MyMail.Credentials = MyCredentials;
MyMail.Send(MyMsg);
گروه دور همی پارسی کدرز
https://t.me/joinchat/GxVRww3ykLynHFsdCvb7eg
https://t.me/joinchat/GxVRww3ykLynHFsdCvb7eg