login about faq


Is there a way to make the verification of connection of login a faster one? Below is my code...

Select Case action Case Framework.Base.Shared.EmailSendAndReceive.Incoming mailMan.MailHost = "pop.gmail.com" mailMan.PopUsername = "johndoe@gamil.com"

      mailMan.PopPassword = ""
      mailMan.MailPort = 995
      mailMan.SizeLimit = 0

 Case Framework.Base.Shared.EmailSendAndReceive.OutGoing
      mailMan.SmtpHost = "smtp.gmail.com"
      mailMan.SmtpUsername = "johndoe@gamil.com"
      mailMan.SmtpPort = 587

End Select

'Here relies the issue, it takes a lot of time before it gives response that it failed. If MailMan.VerifySmtpConnection Then MessageBox.Show("Failed TCP/IP connection") ElseIf MailMan.VerifySmtpLogin Then MessageBox.Show("Failed to login")
End If

asked Apr 05 '13 at 06:17

kreig's gravatar image


The VerifySmtpConnection and VerifySmtpLogin methods were not intended to be called prior to calling SendEmail. The intent was that if SendEmail returns a failed status, you could first check the LastSmtpStatus property for a quick summary -- assuming the process of sending progressed to a point where an SMTP status response was received. If not, you could then fall back to calling VerifySmtpLogin to see if the SMTP authentication succeeds. Again, you could check LastSmtpStatus, or you could then call VerifySmtpConnection.

If the problem is with establishing a TCP/IP socket connection to the server, and if the failure is such that the connect request times out, then THAT is the cause of the long delay.


answered Apr 05 '13 at 15:44

chilkat's gravatar image

chilkat ♦♦

Yes, that's what I did. I didn't call the methods VerifySmtpConnection and VerifySmtpLogin before sending the email. I called it after sending the email and it fails.

However, on our case, we have a wizard form that will setup the email account of the user. During setup, we verify the data input by the user, and one of the verification is the said methods.

So I'm going back again to my question... Is there a way to make the verification a faster one? Because it takes 20-30 minutes the response/feedback going back to us.


answered Apr 08 '13 at 20:48

kreig's gravatar image


edited Apr 08 '13 at 21:06

any update on this?


answered Apr 17 '13 at 22:27

kreig's gravatar image



It's already 2 months and still there's no feedback from you. Did you guys look with my main concern? Our clients were very frustrated with this.


answered Jun 18 '13 at 03:36

kreig's gravatar image


Is it really taking 20-30 minutes for your VerifySmtpConnection/VerifySmtpLogin calls to return?

Maybe you've set the ConnectionTimeout and/or ReadTimeout properties too high? Note that the parameter values for those properties should be in seconds, not milliseconds. I know some other APIs and libraries tend you use milliseconds over seconds, so that might be a common place to make an error that would dramatically increase the time that timeouts take to happen.


answered Jun 18 '13 at 13:38

jpbro's gravatar image

jpbro ♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Apr 05 '13 at 06:17

Seen: 1,251 times

Last updated: Jun 18 '13 at 13:38

powered by OSQA