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
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>
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.
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.
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.
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....
" If people criticize you, hurt you, or shout at you,Don't be bothered. Just remember, In every game, audience make the noise, not the players "
bridgetgregory
Member
49 Points
15 Posts
Problem Sending Email in Clubsite with Go Daddy
Feb 15, 2007 07:32 PM|LINK
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 StringsMsg +=
"<p>First Name: " & nameTextBox.TextsMsg +=
"<p> Email: " & emailTextBox.TextsMsg +=
"<p> Location: " & locationDropDown.SelectedItem.TextsMsg +=
"<p>Date: " & dp2.selectedDateTimesMsg +=
"<p>Terms: " & TextBox1.Textmessage.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 SubEnd
ClassThis 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:
typhoid
Member
335 Points
85 Posts
Re: Problem Sending Email in Clubsite with Go Daddy
Feb 16, 2007 02:08 PM|LINK
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>
bridgetgregory
Member
49 Points
15 Posts
Re: Problem Sending Email in Clubsite with Go Daddy
Feb 16, 2007 04:29 PM|LINK
typhoid
Member
335 Points
85 Posts
Re: Problem Sending Email in Clubsite with Go Daddy
Feb 16, 2007 10:34 PM|LINK
You're welcome. We GoDaddy users sometimes have to help each other out.
bridgetgregory
Member
49 Points
15 Posts
Re: Problem Sending Email in Clubsite with Go Daddy
Feb 17, 2007 03:24 PM|LINK
rogertinsley
Member
47 Points
18 Posts
Re: Problem Sending Email in Clubsite with Go Daddy
Apr 16, 2007 05:54 PM|LINK
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.
sending email godaddy port
jeric2k5
Member
99 Points
39 Posts
Re: Problem Sending Email in Clubsite with Go Daddy
Apr 19, 2007 03:49 PM|LINK
What is the error you are receiving after removing the "port"?
~Eric
rogertinsley
Member
47 Points
18 Posts
Re: Problem Sending Email in Clubsite with Go Daddy
Aug 13, 2007 02:38 PM|LINK
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.
gyukon
Member
2 Points
1 Post
Re: Problem Sending Email in Clubsite with Go Daddy
Feb 28, 2008 06:22 PM|LINK
Thank you so much! I had the same problem and this did the trick.
CoolBond
Contributor
2828 Points
562 Posts
Re: Problem Sending Email in Clubsite with Go Daddy
Feb 28, 2008 06:30 PM|LINK
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
" If people criticize you, hurt you, or shout at you,Don't be bothered. Just remember, In every game, audience make the noise, not the players "