Problem on sending emails

Discussion in 'ASP .Net' started by Mr. X., Aug 11, 2010.

  1. Mr. X.

    Mr. X. Guest

    I have an, that sending emails.

    I have the following code :
    Dim mail As New MailMessage
    Dim smtp As New SmtpClient("")

    smtp.Credentials = New NetworkCredential("",
    mail.From = New MailAddress("")
    mail.Subject = "Contact"
    mail.Body = "<html> <body>...</body> </html>>
    mail.IsBodyHtml = true

    Everything works fine, till some changes of the site provider.

    Now I am getting the message :
    The SMTP server requires a secure connection or the client was not
    I have been told, I need to add some parameter : required authentication.
    Why may be that change?

    Thanks :)
    Mr. X., Aug 11, 2010
    1. Advertisements

  2. Mr. X.

    Jason Keats Guest

    Maybe checking the inner exception for more information would help:
    Jason Keats, Aug 11, 2010
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.