troubleshooting Question

Asp.net Email Setup giving me an error-Syntax error, command unrecognized. The server response was: imp10 smtp.charter.net MjE2LjEwLjI0Ni4xNjE= You must connect from Charter IP space. E1110

Avatar of westdh
westdhFlag for United States of America asked on
.NET ProgrammingASP.NETMicrosoft Development
2 Comments1 Solution432 ViewsLast Modified:
Error msg:
Asp.net Email Setup giving me an error-Syntax error, command unrecognized. The server response was: imp10 smtp.charter.net MjE2LjEwLjI0Ni4xNjE= You must connect from Charter IP space. E1110

My code:
    Protected Sub EmailChecked_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles EmailChecked.Click
        Dim sb As New StringBuilder()

        For Each gr As GridViewRow In uxItemDetailGrid.Rows
            Dim cb As CheckBox = DirectCast(gr.FindControl("RowLevelCheckBox"), CheckBox)
            If cb.Checked Then
                sb.Append(uxItemDetailGrid.DataKeys(gr.RowIndex)("strBadgeName").ToString())
                sb.Append(",")
            End If
        Next

        If sb.ToString() <> "" Then

            Dim msg As New MailMessage("westdh@charter.net", sb.ToString())
            msg.Subject = txtEmailSubject.Value
            msg.Body = txtArea.Value
            Dim sc As New SmtpClient("mail.charter.net", 25)
            sc.Credentials = New Net.NetworkCredential("westdh@charter.net", "xxxxxx")
            sc.EnableSsl = True
            Try
                sc.Send(msg)
                Response.Write("<B>Email Has been sent successfully.</B>")
            Catch ex As Exception
                Response.Write(ex.Message)
            End Try
        End If

    End Sub
ASKER CERTIFIED SOLUTION
gemailj

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros