title: Transaction failed. The server response was: 5.7.1 Forged HELO
body: <p>Transaction failed. The server response was: 5.7.1 Forged HELO .</p>
  
  <p>Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. </p>
  
  <p>Exception Details: System.Net.Mail.SmtpException: Transaction failed. The server response was: 5.7.1 Forged HELO .</p>
  
  <pre><code>    Session["New"] = TextBox1.Text;
      MailMessage msg;
      string ActivationUrl = string.Empty;
      string emailId = string.Empty;                                
      msg = new MailMessage();
      SmtpClient smtp = new SmtpClient();
      emailId = TextBox1.Text.Trim();
      msg.From = new MailAddress("******");
      msg.To.Add(emailId);
      msg.Subject = "Confirmation E-mail";
      msg.Body = str2;
      msg.IsBodyHtml = true;
      smtp.Credentials = new NetworkCredential("*********", "**********");
      smtp.Port = 25;
      smtp.Host = "***********";
      smtp.EnableSsl = false;                                
      smtp.Send(msg);
      ScriptManager.RegisterStartupScript(this, this.GetType(), "Message", "alert('Confirmation Link to activate your account has been sent to your email address');", true);                                                                
      Response.Redirect("Successfull.aspx");
  </code></pre>
  
  <p>My web.config file</p>
  
  <pre><code>&lt;configuration&gt;    
      &lt;connectionStrings&gt;
        &lt;add name="ConnectionString" connectionString="server=***.**.***.**;Database=***********;Integrated Security=false;Uid=**********;Pwd=**********;" providerName="System.Data.SqlClient" /&gt;
        &lt;remove name="LocalSqlServer"/&gt;
        &lt;add name="LocalSqlServer" connectionString="Server=***.**.***.**;Database=************;User ID=*****************;Password=*****************;" /&gt;
        &lt;/connectionStrings&gt;
      &lt;system.web&gt;
          &lt;compilation debug="true" targetFramework="4.0" /&gt;
  
      &lt;/system.web&gt;
    &lt;system.web&gt;
    &lt;machineKey validationKey="**************************************" decryptionKey="****************************************************" validation="****" decryption="***" /&gt;
    &lt;/system.web&gt;
      &lt;system.web&gt;
      &lt;customErrors mode="Off" /&gt;
    &lt;/system.web&gt;
  &lt;/configuration&gt;
  </code></pre>