من این کد رو می نویسم
using System.Net;
//using System.Web.Mail;
using System.Net.Mail;
protected void Button1_Click(object sender, EventArgs e)
{
MailMessage mail = new MailMessage();
mail.From = new MailAddress("
[email protected]");
mail.To.Add("
[email protected]");
mail.Subject = " امتحانی موضوع";
mail.Body = "متن ایمیل به همراه کد html";
mail.IsBodyHtml = true;
SmtpClient smtp = new SmtpClient("127.0.0.1");
smtp.Credentials = new NetworkCredential("
[email protected]", "88774411");
smtp.Send(mail);
Label2.Visible = true;
Label2.Text = "<font style='color:red;'>ایمیل با موفقیت ارسال شد</font>";
که در آخر این خطا رو می دهد البطه من در همگاه انجام برنامه به اینترنت هم وصل می شوم
The operation has timed out.