Email sending from 1and1 SMTP server
<p>Trying to send email from 1and1 smtp server in ASP : </p>

<pre><code> MailMessage Msg = new MailMessage();
        Msg.From = new MailAddress("admin@mywebsite.com");
        Msg.To.Add("personalmail");
        SmtpClient smtp = new SmtpClient("auth.smtp.1and1.fr",465);
        smtp.Credentials = new NetworkCredential("admin@mywebsite.com", "mypassword");
        smtp.EnableSsl = true;
        try
        {
            // smtp.Send(Msg);
            smtp.Send(Msg);
            return "ok";
        }
        catch (Exception e)
        {
            return e.ToString();
        }
</code></pre>

<p>The code goes in the catch with the error called :"net_io_connectionclosed"
Do Someone know this problem ?
Regards</p>