Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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
  #21 (permalink)  
Old September 21st, 2011, 04:42 PM
Authorized User
Points: 144, Level: 2
Points: 144, Level: 2 Points: 144, Level: 2 Points: 144, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2011
Location: Meridian, Idaho
Posts: 37
Thanks: 13
Thanked 0 Times in 0 Posts
Send a message via MSN to SamuelMSr
Default

Quote:
Originally Posted by Imar View Post
I don't have to see it. You can check for yourself to see if the settings you set in web.config show up here (such as host, port, and credentials).

Imar
You are right, sorry for being such a bug. I am trying to learn all this stuff on my own and it is definitely not as easy as some other stuff I have taught myself.

It appears that all of the information is being read from the web.config properly.
__________________
Noob, whole noob, nothing but a noob, so help me God. I will learn if it kills me.....
  #22 (permalink)  
Old September 21st, 2011, 04:49 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
sorry for being such a bug. I am trying to learn all this stuff on my own and it is definitely not as easy as some other stuff I have taught myself.
No problem at all. This is a Beginner's book, isn't it? ;-)

One final thing to check: does mySmtpClient.Credentials contain your correct user name and Gmail e-mail address? If that's the case, everything really looks fine and it must be something with your network / security configuration.

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!
The Following User Says Thank You to Imar For This Useful Post:
SamuelMSr (September 21st, 2011)
  #23 (permalink)  
Old September 21st, 2011, 04:55 PM
Authorized User
Points: 144, Level: 2
Points: 144, Level: 2 Points: 144, Level: 2 Points: 144, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2011
Location: Meridian, Idaho
Posts: 37
Thanks: 13
Thanked 0 Times in 0 Posts
Send a message via MSN to SamuelMSr
Default

Yep it sure does. That is so very odd!

Any idea why it would also not work on the hosting site where I uploaded it at?? (godaddy)

For now I can set it to dump to my hard drive and continue on with the book, but at some point I have to be able to make this work. I am also taking what I learn here and building a website for someone, and at some time I will need this or similar features to work.

Thanks a ton for your time!
__________________
Noob, whole noob, nothing but a noob, so help me God. I will learn if it kills me.....
  #24 (permalink)  
Old September 21st, 2011, 05:01 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

If I amnot mistaken, GoDaddy has their own mail servers which you should use. There's a fair chance they block this port. Check their FAQs for instructions on configuring your mail settings.

>>Thanks a ton for your time!

My pleasure.

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!
  #25 (permalink)  
Old September 26th, 2011, 01:48 PM
Authorized User
Points: 224, Level: 4
Points: 224, Level: 4 Points: 224, Level: 4 Points: 224, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2011
Posts: 41
Thanks: 3
Thanked 4 Times in 3 Posts
Default SMTP for Godaddy.com

Samuel: were you able to figure out the settings for gmail smtp? I am having the same problem.

Using Visual Web Developer (VWD), I can send email ok using:

host="smtp.gmail.com" enableSs1="true" userName="xxnamexx" password="pwd" port="465"

However, when I deploy my webpage to my site on godaddy.com, it doesn't work.

*****************
BTW, here are the correct smtp settings for using Godaddy.com's mail server if you want to use your @domain.com mail instead of gmail.

External server (e.g., using VWD):
host="smtpout.secureserver.net" userName="spell@it.outfully" password="pwd"

Internal server (hosted on godaddy web server):
host="relay-hosting.secureserver.net" userName="spell@it.outfully" password="pwd"
  #26 (permalink)  
Old September 26th, 2011, 01:56 PM
Authorized User
Points: 144, Level: 2
Points: 144, Level: 2 Points: 144, Level: 2 Points: 144, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2011
Location: Meridian, Idaho
Posts: 37
Thanks: 13
Thanked 0 Times in 0 Posts
Send a message via MSN to SamuelMSr
Default

I was not able to get it to work either way, but if you are unable to get it to work with godaddy then that is most likely an issue with the hosting service not your code. Try using an address from godaddy that is associated with your domain instead. I am going to try that soon myself.
__________________
Noob, whole noob, nothing but a noob, so help me God. I will learn if it kills me.....
  #27 (permalink)  
Old September 26th, 2011, 02:17 PM
Authorized User
Points: 144, Level: 2
Points: 144, Level: 2 Points: 144, Level: 2 Points: 144, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2011
Location: Meridian, Idaho
Posts: 37
Thanks: 13
Thanked 0 Times in 0 Posts
Send a message via MSN to SamuelMSr
Default

Ok, so instead of using the gmail account I used my cableone.net account, my primary email address (my ISP is Cable One) and it works from my machine locally but not on the godaddy site. I will set up my email address later on godaddy and try that and it should work.

At least I know it was a gmail problem and not a problem with my code, it made my whole day!!!
__________________
Noob, whole noob, nothing but a noob, so help me God. I will learn if it kills me.....
  #28 (permalink)  
Old September 26th, 2011, 03:46 PM
Authorized User
Points: 224, Level: 4
Points: 224, Level: 4 Points: 224, Level: 4 Points: 224, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2011
Posts: 41
Thanks: 3
Thanked 4 Times in 3 Posts
Default It works on godaddy.com

Sam,

Just to clarify. I didn't get it working using the gmail smtp either.

But I did get it working using the godaddy smtp settings using my personal domain email. If you want to go that route (assuming that you use godaddy as hosting service):

1) create email account at godaddy (e.g., email@yourdomain.com)
2) using the following in config file: <network host="relay-hosting.secureserver.net" userName="email@yourdomain.com" password="pwd" />

p.s., if anyone gets the gmail or yahoo smtp settings to work, please post settings as I am curious; I am not referring to getting it to work on VWD, it does for me; But when I post the webpage to a hosting service, it doesn't work. Thanks.
The Following User Says Thank You to nanonerd For This Useful Post:
SamuelMSr (September 26th, 2011)
  #29 (permalink)  
Old September 26th, 2011, 04:19 PM
Authorized User
Points: 144, Level: 2
Points: 144, Level: 2 Points: 144, Level: 2 Points: 144, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2011
Location: Meridian, Idaho
Posts: 37
Thanks: 13
Thanked 0 Times in 0 Posts
Send a message via MSN to SamuelMSr
Default

Quote:
Originally Posted by nanonerd View Post
Sam,

Just to clarify. I didn't get it working using the gmail smtp either.

But I did get it working using the godaddy smtp settings using my personal domain email. If you want to go that route (assuming that you use godaddy as hosting service):

1) create email account at godaddy (e.g., email@yourdomain.com)
2) using the following in config file: <network host="relay-hosting.secureserver.net" userName="email@yourdomain.com" password="pwd" />

p.s., if anyone gets the gmail or yahoo smtp settings to work, please post settings as I am curious; I am not referring to getting it to work on VWD, it does for me; But when I post the webpage to a hosting service, it doesn't work. Thanks.
I got this to work and I thank you for it, using the GoDaddy email address works like a charm. Or at least I think so, it says mail sent but I have not received it yet. I will work on that later.

As far as getting GMail to work with GoDaddy, you can not. The ports required for their SMTP are closed with GoDaddy and there is nothing you can do about it, so sending ssl enabled email is probably not going to happen when hosting on their servers.
__________________
Noob, whole noob, nothing but a noob, so help me God. I will learn if it kills me.....




Similar Threads
Thread Thread Starter Forum Replies Last Post
Try it out Ch9 pgs 311-312 tjsully BOOK: Beginning ASP.NET 4 : in C# and VB 2 July 16th, 2011 04:46 PM
Ch9 Page 303 - Build error ken evans BOOK: Beginning ASP.NET 4 : in C# and VB 2 October 17th, 2010 10:12 AM
VB Ch9 Try It Out Looping ... p325 Rich57 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 2 March 7th, 2008 04:57 AM
Multidimensional array in ch9 willburke BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 November 2nd, 2004 04:44 PM





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