Problem Sending Email in Clubsite with Go Daddy

Last post 07-22-2008 3:34 PM by ProfessorPC. 15 replies.

Sort Posts:

  • Problem Sending Email in Clubsite with Go Daddy

    02-15-2007, 3:32 PM
    • Member
      49 point Member
    • bridgetgregory
    • Member since 10-13-2006, 9:28 PM
    • Naples, FL
    • Posts 15

    This worked fine on local host, but now that I have the site up on Go Daddy, I get this error when I try to submit a signup form that should go to my email.  Like I said it worked fine with no problems on local host. 

     Any help would be greatly appreciated. 

    Bridget

     HERE IS MY WEB.CONFIG

    <

    system.net>

    <

    mailSettings>

    <

    smtp from="info@royalflushpokeronline.net">

    <

    network host="smtp.secureserver.net" port="80"

    />

    </

    smtp>

    </

    mailSettings>

    </

    system.net>

     HERE IS THE CODE BEHIND THE SUBMIT BUTTON

    Imports System.Net.Mail

    Partial

    Class signup

    Inherits System.Web.UI.Page

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

    Dim message As New MailMessage

    Dim sMsg As String

    sMsg +=

    "<p>First Name: " & nameTextBox.Text

    sMsg +=

    "<p> Email: " & emailTextBox.Text

    sMsg +=

    "<p> Location: " & locationDropDown.SelectedItem.Text

    sMsg +=

    "<p>Date: " & dp2.selectedDateTime

    sMsg +=

    "<p>Terms: " & TextBox1.Text

    message.To.Add(

    "signup@royalflushpokeronline.com")

    message.Subject =

    "Online Signup"

    message.Body = sMsg

    message.IsBodyHtml =

    True

    Dim smtp As New SmtpClient()

    smtp.Send(message)

    Label1.Text =

    "You have successfully signed up!!!"

    nameTextBox.Text =

    ""

    emailTextBox.Text =

    ""

    locationDropDown.SelectedItem.Text =

    "Select One..."

    End Sub

    End

    Class

    This is the error I get when I hit submit.  

    Server Error in '/' Application.

    Configuration Error

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Insufficient permissions for setting the configuration property 'port'.

    Source Error:

    Line 65:     <mailSettings>
    Line 66:       <smtp from="info@royalflushpokeronline.net">
    Line 67:         <network host="smtp.secureserver.net" port="80"
    Line 68:          />
    Line 69:       </smtp>

     

  • Re: Problem Sending Email in Clubsite with Go Daddy

    02-16-2007, 10:08 AM
    • Member
      335 point Member
    • typhoid
    • Member since 08-10-2006, 1:14 PM
    • Posts 85

    This is my mailsettings that works with GoDaddy:

    <system.net>
        <mailSettings>
          <smtp from=someone@myorg.net>
            <network host="relay-hosting.secureserver.net"/>
          </smtp>
        </mailSettings>
      </system.net>

     

  • Re: Problem Sending Email in Clubsite with Go Daddy

    02-16-2007, 12:29 PM
    • Member
      49 point Member
    • bridgetgregory
    • Member since 10-13-2006, 9:28 PM
    • Naples, FL
    • Posts 15
    That seemed to do the trick.  I just took out the port.  It is working fine now.  Thank you, thank you, thank you.  Figures it would be someone small like that. 
  • Re: Problem Sending Email in Clubsite with Go Daddy

    02-16-2007, 6:34 PM
    • Member
      335 point Member
    • typhoid
    • Member since 08-10-2006, 1:14 PM
    • Posts 85

    You're welcome.  We GoDaddy users sometimes have to help each other out.

  • Re: Problem Sending Email in Clubsite with Go Daddy

    02-17-2007, 11:24 AM
    • Member
      49 point Member
    • bridgetgregory
    • Member since 10-13-2006, 9:28 PM
    • Naples, FL
    • Posts 15
    Figures it would be something small like that, is what I meant to say.
  • Re: Problem Sending Email in Clubsite with Go Daddy

    04-16-2007, 1:54 PM
    • Member
      47 point Member
    • rogertinsley
    • Member since 06-06-2006, 7:06 PM
    • Posts 18

    I'm having the same problem, only removing the port only changed the failure.  One difference is that I'm in a subfolder.  Any suggestions?

     

    Follow up - Godaddy told me that in order to send email from code, it is required to use "relay-hosting.secureserver.net" as the smtp mail server, and this only works with port 25 (the default).  My problem has been resolved.

  • Re: Problem Sending Email in Clubsite with Go Daddy

    04-19-2007, 11:49 AM
    • Member
      99 point Member
    • jeric2k5
    • Member since 02-11-2007, 11:45 PM
    • Posts 39

    What is the error you are receiving after removing the "port"?

     ~Eric
     

    Blog/Personal Site = http://www.sdotcire.com
  • Re: Problem Sending Email in Clubsite with Go Daddy

    08-13-2007, 10:38 AM
    • Member
      47 point Member
    • rogertinsley
    • Member since 06-06-2006, 7:06 PM
    • Posts 18

    After much trial and error, I have come to the conclusion that the sending smtp host must be different on the goDaddy server than it is on your development computer, and that can be accomplished via different web.config parameters.  On the goDaddy site the smtp host must be "relay-hosting.secureserver.net" using port 25 and on your development maching, it must be "smtpout.secureserver.net" using port 80.  In other words, you must put something into "production" without actually testing it.

  • Re: Problem Sending Email in Clubsite with Go Daddy

    02-28-2008, 2:22 PM
    • Member
      2 point Member
    • gyukon
    • Member since 02-28-2008, 7:20 PM
    • Posts 1

     Thank you so much! I had the same problem and this did the trick.

  • Re: Problem Sending Email in Clubsite with Go Daddy

    02-28-2008, 2:30 PM
    • Contributor
      2,474 point Contributor
    • CoolBond
    • Member since 10-25-2007, 9:34 AM
    • Country
    • Posts 493

     Hi

    this error might be due to insufficient privileges for you

    try this method

     

            C#

                   SmtpClient client = new SmtpClient(smtp_server);
                    client.UseDefaultCredentials = false;
                    client.DeliveryMethod = SmtpDeliveryMethod.Network;
                    client.Credentials = new System.Net.NetworkCredential("usename", "password");
                    client.Send(emailMsg); 

          VB

                    Dim client As SmtpClient = New SmtpClient(smtp_server)
                    client.UseDefaultCredentials 
    = false
                    client.DeliveryMethod SmtpDeliveryMethod.Network
                    client.Credentials 
    = New System.Net.NetworkCredential("usename""password")
                    client.Send(emailMsg)

    hope this will help for you 

    Hope this will help you....
  • Re: Problem Sending Email in Clubsite with Go Daddy

    03-10-2008, 1:29 PM
    • Member
      2 point Member
    • kwezzie1
    • Member since 03-10-2008, 5:22 PM
    • Posts 1

     hi,

    could you please help me upload my site from visual studio? I am a newbie and hosting on godaddy as well. I did a publish which was successfull but I get this error when I try to find my site on the internet:

     

    Application Error

    An error has occured in the application.

     

    Could you please give me direction as to what to do to get the site working properly? Thanks in advance. 

     

  • Re: Problem Sending Email in Clubsite with Go Daddy

    03-19-2008, 6:29 AM
    • Member
      335 point Member
    • typhoid
    • Member since 08-10-2006, 1:14 PM
    • Posts 85

    kwezzie1:

     hi,

    could you please help me upload my site from visual studio? I am a newbie and hosting on godaddy as well. I did a publish which was successfull but I get this error when I try to find my site on the internet:

     

    Application Error

    An error has occured in the application.

     

    Could you please give me direction as to what to do to get the site working properly? Thanks in advance. 

     

    Did you find an answer yet?  If not, search this forum for "godaddy walkthrough".  It may be a bit out of date due to updates to the GoDaddy management console(s), but it might point you in the right direction.  I'll be pushing a new site up to GoDaddy in the next couple of weeks and can update the walkthrough if anyone needs it.

     

  • Re: Problem Sending Email in Clubsite with Go Daddy

    03-19-2008, 9:54 AM
    • Member
      81 point Member
    • phamster
    • Member since 01-15-2007, 4:18 PM
    • Posts 149

    Here are instructions to how to setup the clubstarter kit from beginning to end onto GoDaddy. Hope this helps.

    1. Create your site locally.  Include AT LEAST 1 local admin account.
    2. Run site using CTRL-F5.
    3. Log into your GoDaddy hosting account and open the control panel.
    4. Click on ASP.Net runtime and select 2.0
    5. Click Databases > SQL Server > Create New Database.
    6. Select
      1. Check DSN (optional?)
      2. Enter UserName (this will become the database name NOT your hosting login)
      3. Enter Password (again, database password NOT hosting password)
      4. Check "Install Schema Features"
    7. Click Continue > Create Database (it WILL take some time for the database to create itself, you can refresh by clicking the SQL button in the left menu)
    8. Once setup finishes, Click Pencil icon under actions > print this page.
    9. Click Computer icon under actions > record the SQL Connection (.NET) strings
    10. Click Open Manager
    11. Click Connection > Enter the Username and Password from 6 above.
    12. Once connected, expand Tools menu > Click Query Analyzer
    13. Cut & Paste all text from club-add.sql into the Query Analyzer window
    14. Click Submit (you should see many "command(s) completed successfully" below)
    15. Go back to VWD and edit default.aspx
    16. Go to Edit > Find & Replace > Quick Replace
      1. Find dbo. (NOT Dbo. big difference)
      2. Replace with <blank> (nothing, nada, zip, zero)
      3. Look in: Current Document
    17. Click Replace All (should be 12 or more) > Save default.aspx
    18. Repeat steps 16 & 17 for:
      1. Events_Edit.aspx
      2. Events_View.aspx
    19. Open web.config
      1. Replace original text
        1. <add name="ClubSiteDB" connectionString="Data Source=.\SQLExpress;

                Integrated Security=true;

                AttachDBFileName=|DataDirectory|Club.mdf;

                User Instance=True" providerName="System.Data.SqlClient"/>

      2. With new text

        1. <add name="ClubSiteDB" providerName="System.Data.SqlClient"

                connectionString="ConnectionStringGoesHere;

                database=YourDataBaseNameHere;

                uid=YourUserNameHere;

                pwd=YourPasswordHere"/>

          <remove name="LocalSqlServer"/>

          <add name="LocalSqlServer" providerName="System.Data.SqlClient"

                connectionString="ConnectionStringGoesHere;

                database=YourDataBaseNameHere;

                uid=YourUsernameHere;

                pwd=YourPasswordHere"/>

    20. Change <customErrors mode="Off" /> (optional)

    21. Save!!!

    22. Run CTRL-F5 again.  (it will bring up a window with a server error, what you want is to look in the lower left corner of the VWD window for "Build Successful")

    23. Click Website > Copy Web Site > Connect

    24. Input your hosting username and password (NOT you database uid and pwd)

    25. Highlight all files from the left side and click right arrow to transfer.

    26. Go to your public website and create an account for each admin you created on your local database.  (make sure the usernames and passwords are the same!!!)

    27. Log back into Query Analyzer

    28. Input

      1. SELECT RoleId FROM aspnet_Roles WHERE RoleName="Administrators"

    29. Copy bracketed response into a text document and include the brackets

    30. Reset QA and Input

      1. SELECT UserId FROM aspnet_Users WHERE UserName="username"

      2. Copy each bracketed response to your text document.

      3. Reset QA again and Input

        1. INSERT INTO aspnet_UsersInRoles (RoleId, UserID) VALUES ('copied text from 29', 'copied text from 31')

      4. Repeat 28-32 for each admin account


  • Re: Problem Sending Email in Clubsite with Go Daddy

    05-28-2008, 5:58 AM

     You guys are facing this problem because your site is hosted on Medium Trust Level... Thats why this CAS error is coming

     Please try to over ride this from you web.config

     

    under System.Web add the followign line of code

    <trust level="Full" originUrl=""/>
     

    Please MARK post as ANSWERED, if you find answer helpful
    http://www.linkedin.com/in/shantanushukla
  • Re: Problem Sending Email in Clubsite with Go Daddy

    07-02-2008, 2:23 PM
    • Member
      2 point Member
    • TripleA
    • Member since 06-29-2008, 11:27 AM
    • Posts 3

    the port removing also works for me

Page 1 of 2 (16 items) 1 2 Next >