troubleshooting Question

Bulk email app pauses on SMTP.Send

Avatar of grpmis
grpmis asked on
ExchangeVisual Basic.NETEmail Protocols
7 Comments1 Solution680 ViewsLast Modified:
This bulk email app was sending emails at 225/minute and now its at about 80/minute.  When it pauses, it pauses for about 6 seconds. If I break while running in debug mode, at the time of the pause, it's always stopped on the actual SMTP SEND command.  My code is below...
==============================
            'SEND THE EMAIL
            Dim mail As New MailMessage()
            mail.From = New MailAddress("reply@dealerreply.com")
            mail.To.Add(VarCustEmailAddress)

            Dim smtp As New SmtpClient("webmail.dpscrm.com")
            smtp.Port = 25
            smtp.Credentials = New System.Net.NetworkCredential("UID", "PWD")
            mail.Subject = "Reference your " & VarYear & " " & VarMake & " " & VarModel & "(" & VarName & ")"
            mail.Body = txtModified.Text
            mail.IsBodyHtml = True

                        'SEND
                        Try
                            smtp.Send(mail)
                        Catch
                            LstError.Items.Add(VarRecNum & ": Could not send, " & VarCustEmailAddress)
                            LstError.Refresh()
                            VarNotSent = True
                        End Try
=======================================
Any ideas on why it pauses periodically... how can I prevent it.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 7 Comments.
Join the Community
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 7 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