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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:22:28+00:00 2026-05-18T00:22:28+00:00

Alas, my experience has reached an end and request help. So far I’ve followed

  • 0

Alas, my experience has reached an end and request help. So far I’ve followed the instructions from this article https://web.archive.org/web/20211016215613/http://www.4guysfromrolla.com/webtech/080801-1.shtml . My only problem is It compiles fine but no email arrives. I have a feeling it’s for obvious reasons which escape me.

This is my aspx.vb page…………………………………………………………………………………………………..

Imports System.Web.Mail

    Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click

    Const ToAddress As String = "paul.ramirez@att.net"
    Dim objMM As New MailMessage("paramireze@gmail.com", ToAddress)
    Dim smtp As New SmtpClient
    objMM.IsBodyHtml = False
    objMM.Priority = MailPriority.Normal
    objMM.Subject = "Hello there!"
    objMM.Body = "Hi!" & vbCrLf & vbCrLf & "How are you doing?"
    smtp.Send(objMM)
end sub

……………………………………………………………………………………………………………………………………….

my aspx page contains the following …w/o the parenthesis
(<%@Import Namespace="System.Web.Mail" %>)

The web.config file is as follows(unfortunately it won’t display with greater than less than symbols.

<configSections>
  <system.net>
    <mailSettings>
      <smtp>
        <network host="relay-hosting.secureserver.net" port="25">
      </smtp>
    </mailSettings>
  </system.net>
</configSections>

The people at godaddy.com told me that the only information I needed was the relayServer host name which is relay-hosting.secureserver.net and username and password weren’t required.

Thanks for any help

  • 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-18T00:22:29+00:00Added an answer on May 18, 2026 at 12:22 am

    I think that is your problem. Change the mail server port from port 80 to port 25 in the web.config

    Try using this block of code:

    Dim objMailMessage As New System.Net.Mail.MailMessage 
    
    With objMailMessage 
        .IsBodyHtml = False 
        .From = New MailAddress("fromaddress@youremailaccount.com")   
        .To.Add("destinationaddress@whoever.com") .Subject = "Your Subject" 
        .Body = "Body Text" 
    End With 
    
    Dim objSMTPClient As New System.Net.Mail.SmtpClient("relay-hosting.secureserver.net", 25) 
    objSMTPClient.Credentials = CredentialCache.DefaultNetworkCredentials
    objSMTPClient.DeliveryMethod = SmtpDeliveryMethod.Network 
    objSMTPClient.Send(objMailMessage)
    

    Here is the thread and some other examples as well. It also sounds like there is a godaddy setting somewhere, but I don’t remember having to change anything on my end.

    http://forums.asp.net/t/939893.aspx

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

Sidebar

Related Questions

Has anyone any experience of using PGM at the winsock (not MSMQ) level on
My program, alas, has a memory leak somewhere, but I'll be damned if I
This should be simple, but alas... I've set up an Admin area within my
I've trawled the SO website thinking this is pretty obvious but alas I have
This seems like an extremely easy problem but alas I cannot figure it out
I'm trying to add an ellipsis to the end of the truncated strings this
I like the simplistic look and design of some of the Microsoft blogs. Alas,
I have a Visual Source Safe repository, and some (not all, alas!) of my
Is there an implementation of the rpmbuild that is written in Java? Alas, the
This is a very high-level question. I'm looking for insight into this problem that

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.