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 5934563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:07:54+00:00 2026-05-22T15:07:54+00:00

Apologies as I’m a bit of a beginner with this. I’m trying to send

  • 0

Apologies as I’m a bit of a beginner with this. I’m trying to send an email from my ASP.NET website using the following code (obviously replacing the hostname, username and password with the actual values):

Public Shared Sub Send(ByVal ToEmail As String, ByVal FromEmail As String, ByVal Subject As String, ByVal Message As String)
    Dim mm As New MailMessage(FromEmail, ToEmail, Subject, Message)

    Dim smtp As New SmtpClient("hostname")
    smtp.Credentials = New NetworkCredential("username", "password")

    smtp.Send(mm)
End Sub

When trying to send out the mail I’m receiving this error:

“Unable to read data from the transport connection: net_io_connectionclosed.”

I’ve had a look on various forums to try to find some help with this but I’m not really sure what I should be doing to recify this.

Any help would be very much appreciated. Thanks.

  • 1 1 Answer
  • 2 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-22T15:07:54+00:00Added an answer on May 22, 2026 at 3:07 pm

    Thanks to everyone for their responses. I actually managed to resolve this in the end by contacting Namesco – they said all I need to do is change the hostname that I had put in to “localhost” and it’s worked.

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

Sidebar

Related Questions

Apologies if this is a dumb question. In previous ASP.NET projects, I've been using
Apologies if this is trivial. I was trying to run this code - http://oreilly.com/pub/h/974#code
Apologies, I'm new to ASP.NET MVC. :) I'm unsure if this is simple a
Apologies if this question is a bit obscure, I've been banging my head against
Apologies for the horrible title. I spent 10 minutes trying to explain this in
Apologies for using someone else's brain for this, but I'm sure this is a
Apologies for the appalling title. I have mocked up this code to mimic an
Apologies if this kind of thing has been answered elsewhere. I am using Python
Apologies if this has been answered previously. Say I have the following table: colA
Apologies in advance if this is a silly question, am very much a beginner.

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.