Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7704551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:42:21+00:00 2026-05-31T23:42:21+00:00

We have set up a web site for a client who uses Google Apps

  • 0

We have set up a web site for a client who uses Google Apps for their emails.

In the web site’s contact us section, we have a form to enable a visitor send them a message. In short, the below code is used but it always times out during the ‘send’ phaze.

Dim mysmtp = New System.Net.Mail.SmtpClient
mysmtp.Host = "smtp.gmail.com"
mysmtp.Port = 465
mysmtp.EnableSsl = True
mysmtp.Timeout = 15000 ' it times out a lot later after removing this..


Dim msg As System.Net.Mail.MailMessage
msg = New System.Net.Mail.MailMessage(from:="info@xxx.org", subject:="text", body:="still testing ...", [to]:="xx@gmail.com")


Dim smtpAuthentication As New System.Net.NetworkCredential()

smtpAuthentication.Password = "mypwd"
smtpAuthentication.UserName = "info@xxx.org"
mysmtp.Credentials = smtpAuthentication
mysmtp.Send(msg)

I have tried it with firewall turned off, and anti-virus software disabled. I am using windows 7.

None of the solutions in other questions/forms worked. The problem might not be the code but I am lost.

Any help would be appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T23:42:22+00:00Added an answer on May 31, 2026 at 11:42 pm

    Try with port 587. Here is how the SMTP should be configured.

    Dim smtp As New SmtpClient()
    smtp.Host = "smtp.gmail.com"
    smtp.Port = 587
    smtp.EnableSsl = True
    smtp.DeliveryMethod = SmtpDeliveryMethod.Network
    smtp.UseDefaultCredentials = False
    smtp.Credentials = New NetworkCredential("info@xxx.org", "mypwd")
    

    And if it still doesn’t work, fire up Command Prompt and do this.

    1. Open the Start menu, and select Run.
    2. Enter command in the Open: field, and click OK.
    3. Enter ‘telnet smtp.gmail.com 465,’ and hit Enter, or if you’re using Outlook 2007, enter ‘telnet smtp.gmail.com 587’ instead. (Does the information in the prompt window clear? If not, please note the message that appears.)
    4. Close the prompt window.

    Google help center link: http://support.google.com/mail/bin/answer.py?hl=en&answer=78775

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have set up an AJAX contact form on a client's website. The problem
I have a client who recycles cans. We're developing a new web site for
Hey guys, I have a client who wants their front site to have a
I have a potential client that set up their website and membership system in
I am developing w php web site. Here I have set a php cookie
I have a web site I am building for a client. I now have
I have website that uses ASP.net Membership Provider. This web site will be served
Hey folks. I have a client who's old website was called toastkid.com. I set
I have a following architecture: 1) client logins to ASP.NET web site (www.site.com) where
I have a WCF Service set up on my web site with a service.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.