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> |