Problem sending emails.

Discussion in 'ASP General' started by Mr. X., Jul 28, 2010.

  1. Mr. X.

    Mr. X. Guest

    Hello.
    I have an asp.net, that sending emails.

    I have the following code :
    Dim mail As New MailMessage
    Dim smtp As New SmtpClient("my-site.org")

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

    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
    authenticated.
    I have been told, I need to add some parameter : required authentication.
    Why may be that change?

    Thanks :)
    Mr. X., Jul 28, 2010
    #1
    1. Advertising

  2. Mr. X.

    Bob Barrows Guest

    Mr. X. wrote:
    > Hello.
    > I have an asp.net, that sending emails.


    ***canned wrong-newsgroup reply************************
    There was no way for you to know it (except maybe by browsing through some
    of the previous questions in this newsgroup before posting yours - always a
    recommended practice) , but this is a classic (COM-based) asp newsgroup.
    ASP.Net bears very little resemblance to classic ASP so, while you may be
    lucky enough to find a dotnet-knowledgeable person here who can answer your
    question, you can eliminate the luck factor by posting your question to a
    group where those dotnet-knowledgeable people hang out. I suggest
    microsoft.public.dotnet.framework.aspnet or the forums at www.asp.net.
    ******************************************************************

    >
    > I have the following code :
    > Dim mail As New MailMessage
    > Dim smtp As New SmtpClient("my-site.org")
    >
    > smtp.Credentials = New NetworkCredential("",
    > "myPassowrd")
    > mail.From = New MailAddress("")
    > mail.To.Add("")
    > mail.Subject = "Contact"
    > mail.Body = "<html> <body>...</body> </html>>
    > mail.IsBodyHtml = true
    > smtp.Send(mail)
    >
    > 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
    > authenticated.
    > I have been told, I need to add some parameter : required
    > authentication. Why may be that change?
    >

    "Why?"
    Well, it sounds as if the site administrator wanted to make the site more
    secure. Maybe he was having problems with bots using his site to send spam
    or something.

    Did you mean to ask how to make the change?
    Bob Barrows, Jul 28, 2010
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steve Thurston

    Problem sending emails through AOL connection

    Steve Thurston, Jan 18, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    706
    Steve Thurston
    Jan 19, 2004
  2. Ryan
    Replies:
    0
    Views:
    384
  3. Mr. X.

    Problem on sending emails

    Mr. X., Aug 11, 2010, in forum: ASP .Net
    Replies:
    1
    Views:
    339
    Jason Keats
    Aug 11, 2010
  4. William

    Problem when sending emails with asp.net

    William, Sep 23, 2004, in forum: ASP .Net Web Services
    Replies:
    4
    Views:
    165
    William
    Oct 1, 2004
  5. Cas
    Replies:
    8
    Views:
    170
Loading...

Share This Page