Timeout error

I'm using beta2 and I tried to follow the first thread code. All works fine, but I get a timeout on the line "smtp.Send(mailMessage)". I have tried some servers, all required SSL at port 465 and all fail. Can you help me My code is below:

MailMessage mailMessage = new MailMessage();

mailMessage.To.Add(new MailAddress("a23619@alunos.det.ua.pt"));

mailMessage.Subject = "Exception occured";

mailMessage.From = new MailAddress("a23619@alunos.det.ua.pt");

mailMessage.Body = "Exception occured on: bla bla";

SmtpClient smtp = new SmtpClient("mail.ua.pt", 465);

smtp.EnableSsl = true;

smtp.Send(mailMessage);



Answer this question

Timeout error

  • carlos2001mx

    Do these servers require a spesific client certificate
    if so then you need to set the ClientCertificates Property.
    else you may need to set UseDefaultCredentials = true;

  • TomDotNet

    Hi Andre -
    Sorry for only getting to this thread now.  If you're still around, are you still having this issue

    Thanks,
    Karen

  • Timeout error