I am using a e-mail form using Go Daddy Hosting mail service.
The application works fine on my local machine but when i upload it on godaddy hosting i get exception.
Exception:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 64.202.165.58:25
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 64.202.165.58:25
Code Behind file:
MailMessage mail = new MailMessage();
mail.To.Add("XXX@XXX.com");
mail.From = new MailAddress(txtemail.Text);
mail.Subject = "XXX";
string Body = "XXX";
mail.Body = Body;
mail.IsBodyHtml = true;
SmtpClient smtpClient = new SmtpClient();
smtpClient.Host = "smtpout.secureserver.net";
smtpClient.Credentials = new System.Net.NetworkCredential("XXX@XXX.com", "Password");
smtpClient.Send(mail);
web.config File: I have added this to web.config file after </system.webServer>
Email coding working well in Local Host but it not working in godaddy hosting,Please guide me what I have to do?can you Please send me the Codebehind and webconfig coding.
If you have the same with your web hosting company like OP has I assume you need to get in touch with them and ask for the help. I assume with godaddy that would be quite difficult to do
You may need to check that the website IP address is white listed on GD's mail servers. You could also just use something like google's mail server to send using an authenticated account.
I see here and in alot of other forums that the GoDaddy SMTP Relay-host MUST have the email.FROM address as a registered GoDaddy (White Listed) email address.
That doesn't help if you're trying to set up a ContactUs web page, so that an imail comes into your inbox as follows:
FROM: unknown email address
TO: my goDaddy email Account
I am also trying to use the smtp.gmail.com as a fall back, but finding that gmail swaps out the FROM email address with the gmail smtp credential email address (loosing the Senders email address).
Any Ideas?
www.earthed.net.au
(I am trying to do something very similar to : http://www.4guysfromrolla.com/articles/072606-1.aspx )
I see here and in alot of other forums that the GoDaddy SMTP Relay-host MUST have the email.FROM address as a registered GoDaddy (White Listed) email address.
not true, i use e-mail addresses from other providers and it works just fine on godaddy
Earthed
That doesn't help if you're trying to set up a ContactUs web page, so that an imail comes into your inbox as follows:
FROM: unknown email address
TO: my goDaddy email Account
set from and to to the same e-mail, and add reply-to: unknow e-mail/customer e-mail. That way when you clik reply you will send e-mail to customer who asked question on your site..
I see here and in alot of other forums that the GoDaddy SMTP Relay-host MUST have the email.FROM address as a registered GoDaddy (White Listed) email address.
I use Godaddy.
During Authentication SMTP Credentials have to be valid GoDaddy hosting account email ID and password or You can use any other service provider e-mail also.
MailMessage mail = new MailMessage();
mail.To.Add("AnyEmailAddress");
mail.From = new MailAddress("anyEmailAddress");
smtpClient.Credentials = new System.Net.NetworkCredential("GodaddyAddress", "GodaddyPassword");
But in PHP mail form either one of the e-mail address has to be Godaddy e-mail addres but if u r using ASP.net(C#) that is not the case.
Just follow the code shown in above post and it should work fine. u will need to add reference to System.Net.Mail
Windows 8 Professional 64 Bit.
Visual Studio 2012
Sql Server 2012
-------------------------------------
www.HermesWritings.com
bhanu2217
Member
527 Points
458 Posts
Correct Settings for using SMTP on GoDaddy?
Jul 19, 2009 06:31 AM|LINK
Hi
I am using a e-mail form using Go Daddy Hosting mail service.
The application works fine on my local machine but when i upload it on godaddy hosting i get exception.
Exception:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 64.202.165.58:25
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 64.202.165.58:25
Code Behind file:
MailMessage mail = new MailMessage();
mail.To.Add("XXX@XXX.com");
mail.From = new MailAddress(txtemail.Text);
mail.Subject = "XXX";
string Body = "XXX";
mail.Body = Body;
mail.IsBodyHtml = true;
SmtpClient smtpClient = new SmtpClient();
smtpClient.Host = "smtpout.secureserver.net";
smtpClient.Credentials = new System.Net.NetworkCredential("XXX@XXX.com", "Password");
smtpClient.Send(mail);
web.config File: I have added this to web.config file after </system.webServer>
<system.net>
<mailSettings>
<smtp>
<network
host="smtpout.secureserver.net"
userName="XXX@XXXcom"
password="Password*"
port="25"/>
</smtp>
</mailSettings>
</system.net>
I tried changing smtp server to relay-hosting.secureserver.net but that didnt help.
I am using System.Net.Mail namespace
The application works smothly on my local machine but doesnt work when i upload it to my hoting server.
The application works fine on local machine even if i dont add any code to web.config file but doesnt work on GoDaddy Windows Hosting server.
I checked lot of other post also on the same issue here but none helped.
I have e-mail the tech support of GoDaddy also but no reply yet.
Visual Studio 2012
Sql Server 2012
-------------------------------------
www.HermesWritings.com
HostingASPNe...
All-Star
15882 Points
2977 Posts
Re: Correct Settings for using SMTP on GoDaddy?
Jul 19, 2009 08:00 AM|LINK
Hello,
Use the following relay server - relay-hosting.secureserver.net
You do not need to provide a user name and password for this relay server.
Regards
Free ASP.NET Examples and source code.
bhanu2217
Member
527 Points
458 Posts
Re: Correct Settings for using SMTP on GoDaddy?
Jul 19, 2009 01:49 PM|LINK
Thank You.
2 things i was doing wrong
1) use relay-hosting.secureserver.net
2) From e-mail address has to be a address from ur hosting account.
Visual Studio 2012
Sql Server 2012
-------------------------------------
www.HermesWritings.com
subathral
Member
2 Points
1 Post
Re: Correct Settings for using SMTP on GoDaddy?
Aug 13, 2009 01:27 AM|LINK
I am also getting same problem,
Email coding working well in Local Host but it not working in godaddy hosting,Please guide me what I have to do?can you Please send me the Codebehind and webconfig coding.
rumsfo
Member
266 Points
125 Posts
Re: Correct Settings for using SMTP on GoDaddy?
Aug 13, 2009 07:43 AM|LINK
If you have the same with your web hosting company like OP has I assume you need to get in touch with them and ask for the help. I assume with godaddy that would be quite difficult to do
UltimaHosts....
Member
125 Points
80 Posts
Re: Correct Settings for using SMTP on GoDaddy?
Aug 16, 2009 05:31 PM|LINK
You may need to check that the website IP address is white listed on GD's mail servers. You could also just use something like google's mail server to send using an authenticated account.
bhanu2217
Member
527 Points
458 Posts
Re: Correct Settings for using SMTP on GoDaddy?
Aug 19, 2009 07:48 PM|LINK
I have posted the solution on my blog http://jamboreebliss.com/blog/?p=72
PS: The from e-mail address has to be a valid godaddy.com(hosting account) e-mail address.
Visual Studio 2012
Sql Server 2012
-------------------------------------
www.HermesWritings.com
Earthed
Member
4 Points
2 Posts
Re: Correct Settings for using SMTP on GoDaddy?
Jan 31, 2010 09:53 PM|LINK
I see here and in alot of other forums that the GoDaddy SMTP Relay-host MUST have the email.FROM address as a registered GoDaddy (White Listed) email address.
That doesn't help if you're trying to set up a ContactUs web page, so that an imail comes into your inbox as follows:
FROM: unknown email address
TO: my goDaddy email Account
I am also trying to use the smtp.gmail.com as a fall back, but finding that gmail swaps out the FROM email address with the gmail smtp credential email address (loosing the Senders email address).
Any Ideas?
www.earthed.net.au
(I am trying to do something very similar to : http://www.4guysfromrolla.com/articles/072606-1.aspx )
TOMCIO
Contributor
3636 Points
832 Posts
Re: Correct Settings for using SMTP on GoDaddy?
Jan 31, 2010 11:07 PM|LINK
not true, i use e-mail addresses from other providers and it works just fine on godaddy
set from and to to the same e-mail, and add reply-to: unknow e-mail/customer e-mail. That way when you clik reply you will send e-mail to customer who asked question on your site..
Web: Chicago Website Design
r@zorC - Open Source ASP.net CMS for WebMatrix
bhanu2217
Member
527 Points
458 Posts
Re: Correct Settings for using SMTP on GoDaddy?
Feb 01, 2010 05:12 AM|LINK
I use Godaddy.
During Authentication SMTP Credentials have to be valid GoDaddy hosting account email ID and password or You can use any other service provider e-mail also.
MailMessage mail = new MailMessage(); mail.To.Add("AnyEmailAddress"); mail.From = new MailAddress("anyEmailAddress"); smtpClient.Credentials = new System.Net.NetworkCredential("GodaddyAddress", "GodaddyPassword");But in PHP mail form either one of the e-mail address has to be Godaddy e-mail addres but if u r using ASP.net(C#) that is not the case.
Just follow the code shown in above post and it should work fine. u will need to add reference to System.Net.Mail
Visual Studio 2012
Sql Server 2012
-------------------------------------
www.HermesWritings.com