Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5 > ASP.NET 4.5 General Discussion
|
ASP.NET 4.5 General Discussion For ASP.NET 4.5 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4.5 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 12th, 2014, 02:28 AM
Authorized User
 
Join Date: May 2013
Posts: 59
Thanks: 10
Thanked 0 Times in 0 Posts
Default settings for e mails in godaddy hosting

Hi I am using the same contact form as is in the book aspnet 4.5 book...
when I uploaded the website to godaddy and i use the contact form when I press submit it does not send the email
what should I look at to fix the problem?
mailsettings at webconfig?
any ideas?

I changed the smtp server to godaddy's server....but i don't know what else to look for
Thanks
:)

Last edited by dksellou; October 12th, 2014 at 03:18 AM..
 
Old October 12th, 2014, 09:59 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

To see the actual error message, temporarily remove the AJAX UpdatePanel. That makes it easier to see what's going on.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old October 12th, 2014, 01:51 PM
Authorized User
 
Join Date: May 2013
Posts: 59
Thanks: 10
Thanked 0 Times in 0 Posts
Default

Hi Imar!
yes i did it and it says server does not support secure connections so i removed the enablessl=true
now i run it again and it throws an smtp exception...failure sending mail
:(
 
Old October 12th, 2014, 03:05 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Does the error message provide more information?

Did you contact GoDaddy to find out how you need to configure the web.config file?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old October 12th, 2014, 03:08 PM
Authorized User
 
Join Date: May 2013
Posts: 59
Thanks: 10
Thanked 0 Times in 0 Posts
Default

ok now I changed the smtp server name (after i contacted godaddy) to something else but it is still not working.

in my mail settings at webconfig I use this:

<mailSettings>
<smtp deliveryMethod="Network" from="Webmaster &lt;[email protected]&gt;">
<network host="relay-hosting.secureserver.net" password="password" userName="eas"/>
</smtp>
</mailSettings>

for appsettings I use this:

<appSettings>
<add key="ValidationSettings:UnobtrusiveValidationMode" value="WebForms"/>
<add key="FromAddress" value="[email protected]"/>
<add key="FromName" value="Jewelry company"/>
<add key="ToAddress" value="[email protected]"/>
<add key="ToName" value="Designer"/>
<add key="SendMailOnError" value="true"/>
</appSettings>

please help
 
Old October 12th, 2014, 04:41 PM
Authorized User
 
Join Date: May 2013
Posts: 59
Thanks: 10
Thanked 0 Times in 0 Posts
Default

if you do the website on your own they don't provide you with help ...i asked but they denied
 
Old October 12th, 2014, 04:52 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
Originally Posted by Imar View Post
Does the error message provide more information?


Imar
Does it?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old October 12th, 2014, 05:21 PM
Authorized User
 
Join Date: May 2013
Posts: 59
Thanks: 10
Thanked 0 Times in 0 Posts
Default

no just the message:
failure sending mail....and the exception is pointing to the
mySmtpClient.Send(myMessage);

of the contact form code behind file
 
Old October 12th, 2014, 05:26 PM
Authorized User
 
Join Date: May 2013
Posts: 59
Thanks: 10
Thanked 0 Times in 0 Posts
Default

and now when i comment out the update panel i have another error exception that is point to
var phoneHome = document.getElementById('<%= PhoneHome.ClientID %>');

that says :
No UpdatePanel found for AssociatedUpdatePanelID 'UpdatePanel1'.
 
Old October 12th, 2014, 05:38 PM
Authorized User
 
Join Date: May 2013
Posts: 59
Thanks: 10
Thanked 0 Times in 0 Posts
Default

ok i am getting crazy!
now it sent it but at the same time it showed:
1)thank you for your message we will get back to you shortly and 2)the animated error label
!!!





Similar Threads
Thread Thread Starter Forum Replies Last Post
GoDaddy with JQuery vbboyd ASP.NET 4 General Discussion 0 June 17th, 2011 01:30 AM
GoDaddy.com Email Rraster BOOK: Beginning ASP.NET 4 : in C# and VB 1 December 11th, 2010 04:53 PM
Mysql and Godaddy Web Hosting Nadeem ASP.NET 3.5 Professionals 2 January 29th, 2009 02:37 AM
Hosting on GoDaddy.com photon BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 8 October 6th, 2008 08:18 AM
Changing Settings.settings when assembly is in GAC evandro.paula .NET Framework 2.0 0 September 25th, 2007 09:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.