Sending Email Through localhost asp.net
<pre><code>     public ActionResult Index(EmailModel model)
    {

        MailMessage message = new MailMessage();
        message.From = new MailAddress("sheikh.abm@gmail.com");
        message.To.Add(new MailAddress(model.To));

        message.Subject = model.Subject;
        message.Body = model.Message;


        return View();
    }
</code></pre>

<p>this is my controller action. And in web.config .</p>

<pre><code>     &lt;system.net&gt;
    &lt;mailSettings&gt;
      &lt;smtp from="sheikh.abm@gmail.com"&gt;
        &lt;network host="\localhost:"/&gt;
      &lt;/smtp&gt;
    &lt;/mailSettings&gt;
  &lt;/system.net&gt;
</code></pre>

<p>The problem i got is that the mail didn't send and it didn't show me any error kindly help me.</p>
