title: SMTP server not sending mail
body: <p>I got Message that <strong>mail sent</strong>. But in Inbox there is no new email i have found that email in 
  <code>server inetpub-&gt; mailroot-&gt; Queue</code></p>
  
  <p>Please tell me the solution for this   </p>
  
  <p>Edited</p>
  
  <pre><code> public  string  btnSendmail()
          {
              // System.Web.Mail.SmtpMail.SmtpServer is obsolete in 2.0
              // System.Net.Mail.SmtpClient is the alternate class for this in 2.0
              SmtpClient smtpClient = new SmtpClient();
              MailMessage message = new MailMessage();
  
              try
              {
                  MailAddress fromAddress = new MailAddress("myemail@itaxsmart.com","");
                  smtpClient.Host = "localhost";
                  smtpClient.Port = 25;
                  message.From = fromAddress;
  
                  message.To.Add("mailsendtol@itaxsmart.com");
                  message.Subject = "Feedback";
  
  
  message.IsBodyHtml = false;
  message.Body = "Hello World" ;
  smtpClient.Send(message);
  return  "Email successfully sent.";
   }
   catch (Exception ex)
  {   return  "Send Email Failed." + ex.Message;
        }
  </code></pre>