Posted on: 12/31/2014 12:29:06 AM | Views : 585

Hello,
My code is this, but it doesn't work.
protected void btnSend_Click(object sender, EventArgs e) { if (Page.IsValid) { try { MailMessage mailMessage = new MailMessage(); mailMessage.To.Add("lingo1357@gmail.com"); mailMessage.From = new MailAddress(txtEmail.Text, txtName.Text); mailMessage.Subject = txtSubject.Text; mailMessage.Body = txtMessage.Text; mailMessage.IsBodyHtml = false; SmtpClient smtpClient = new SmtpClient("smtp.sedayetasvir.ir"); smtpClient.Send(mailMessage); lblEmailResult.Text = "????? ?? ?????? ????? ??"; } catch (Exception ex) { lblEmailResult.Text = "??? ?? ????? ????? ? ???? ????? ???? ?????? " + ex.Message; ...

Go to the complete details ...