Send Email Error : Transport failed to connect to the server

Posted on 2007-10-15
Last Modified: 2013-11-07
I have a code which sends NewsLetter to the users. Below is the code.

Dim objEmail as New MailMessage
sBody = "This is our test email to you"
objEmail.Subject="This is my Subject"
Dim MySQL as string = "Select Name, email from TestMail"
Dim MyConn As SqlConnection = New SqlConnection(ConfigurationSettings.AppSettings("YourConfigSettings"))
Dim objDR as SQLDataReader
Dim Cmd as New SQLCommand(MySQL, MyConn)

While objDR.Read()
      sEmail = objDR("email")
      objEmail.To =sEmail
      objEmail.Body=sBody & vbcrlf & "Name: " & objDR("Name") & vbcrlf & "Email: " & sEmail
      objEmail.BodyFormat = MailFormat.Text
      SmtpMail.SmtpServer =""
      lblEmails.text+=sEmail & "<br>"
End While

Above in TestMail table there more than 1000 users. While loop is generating error "transport failed to connect to the server" after sending around 100 emails.

I am running this code on public server using ASP.NET (VB.NET).

What can be the reason for this and solution for same. Please help
Question by:dipak_in_2k
    LVL 9

    Expert Comment

    Hi dipak in 2k,

    The server can't queue all your messages.
    Take a look at this solution:

    Hope this helps.
    LVL 3

    Author Comment

    Hi Noulouk

    Thanks for reply. Now the issue is i am using ASP.NET 1.1 with SQL Server 2000 and website is loaded on Public Web Hosting Server. Can you please suggest me another solution in this context.
    LVL 3

    Author Comment

    Can anybody help on this issue.
    LVL 23

    Accepted Solution

    The best way is to ask your service provider for news letter sending email facility.
    LVL 3

    Author Closing Comment


    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    With a software solution, you always get to control email signatures and have the final say on the design - not an unrelated department or the uninterested end user.
    Every business owner understands the significance of online customer reviews and the impact it can have on sales and revenues. With technology advancing at such a rapid pace, getting online reviews has never been easier, especially when many regions…
    In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
    The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now