title: The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available
body: <p>Please help me I am using this script..</p>
  
  <p>Found the full code <a href="http://pastebin.com/qY1cN1ry" rel="nofollow">Here</a></p>
  
  <pre><code> public void sendemail(int MemberId, DataTable Member, int rowNo)
      {
          MailMessage msgMail = new MailMessage();
  
          msgMail.To = Member.Rows[rowNo]["EmailID"].ToString();
          msgMail.From = "admin@auditionbollywood.com"; 
          msgMail.Subject = "Auditions BollyWood Account Expire";
          msgMail.BodyFormat = MailFormat.Text;
          StringBuilder sb = new StringBuilder();
          sb.AppendFormat("Hi !\n\n");
          sb.AppendFormat("Your Audition Bollywood Account has been expired.Please pay the payment for activation.\n");
          sb.AppendFormat("Click the below link to pay to activate your account\n");
          string link = string.Format("http://www.auditionbollywood.com/paymentrenewal.aspx?MemberId={0}", MemberId.ToString());
          sb.Append(link);
          sb.AppendFormat("\n\nThank You");
          msgMail.Body = sb.ToString();
          msgMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserver", "mail.auditionbollywood.com");
          msgMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport", 587);
          msgMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusing", 2);
          msgMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
          msgMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "admin@auditionbollywood.com");
          msgMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "**********");
          SmtpMail.SmtpServer = "mail.auditionbollywood.com";
          SmtpMail.Send(msgMail);
      }
  </code></pre>