Exception got while sending email
<p>i copy that code 
MailMessage mail = new MailMessage();</p>

<pre><code>        mail.To.Add(model.To);

        mail.From = new MailAddress("sheikh.abm@gmail.com");


        mail.Subject = model.Subject ;

        mail.Body = model.Message;

        mail.IsBodyHtml = true;

        SmtpClient client = new SmtpClient("localhost:");
        client.UseDefaultCredentials = false;
        client.EnableSsl = true;
        client.Host = "localhost:";
        client.Port = 25;

        NetworkCredential credentials = new NetworkCredential(model.To, "abc");

        client.Credentials = credentials;

        try
        {
            client.DeliveryMethod = SmtpDeliveryMethod.PickupDirectoryFromIis;
            client.Send(mail);
        }
        catch
        {



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

<p>the exception i got is "SSL must not be enabled for pickup-directory delivery methods"
.</p>
