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

September 21st, 2011, 02:57 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Quote:
do you know why my profile indicator has not activity and level bar?
|
Maybe this is because of the "profile infraction" you received some time ago for your "spammy posts"? You could try asking in the P2P feedback forum.
Cheers,
Imar
|

September 21st, 2011, 03:12 PM
|
Authorized User
|
|
Join Date: Sep 2011
Posts: 37
Thanks: 13
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by Imar
I really don't understand why this doesn't work. Your code and configuration looks fine. To be absolutely sure I just copied and pasted in a new web site, ran it, and it sent the e-mail just fine. Are you really sure the correct web.config (the one in the root, not another one) contains the correct config info?
So, checking this in a mail client such as Outlook may help figuring out what's going on. Additionally, you may want to try to use Telnet and see if you can open a connection to the Gmail server: http://support.microsoft.com/kb/323350 This may work differently on your version of Windows so you may need to Google a bit to find out what to do and how.
When you say "sent to friend", what do you mean? Did you send them the code to test or a link to the site? In the latter case, it won't work for them either as this is a server side issue.
Cheers,
Imar
|
Hi Imar,
When I say "sent" to friends, I zipped the entire project (c:\BegASPNET\Site) and sent it to them, they opened it and tried it on their machines.
I only have one web.comfig file and it is in my root folder of my site.
I am trying to work with this telnet thing, I have never used it before and have Win7 Ultimate and I have not done anything from a command prompt in so long I almost forgot what they looked like :P
|

September 21st, 2011, 03:36 PM
|
Authorized User
|
|
Join Date: Sep 2011
Posts: 37
Thanks: 13
Thanked 0 Times in 0 Posts
|
|
No matter what I do it is telling me my problem is with line 48:
Line 48: mySmtpClient.Send(myMessage);
|

September 21st, 2011, 03:38 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Yes, that makes sense, as that line sets things in motion. This is where the connection with the SMTP server is set up which apparently fails.
Can you debug and look at mySmtpClient? Does it has the values you set in web.config?
Imar
|
The Following User Says Thank You to Imar For This Useful Post:
|
|

September 21st, 2011, 03:46 PM
|
Authorized User
|
|
Join Date: Sep 2011
Posts: 37
Thanks: 13
Thanked 0 Times in 0 Posts
|
|
I am still new to the VWD and the debugging feature but I will try and do that for you.
Do you possibly have MSN Messenger, you can always contact me smlmrnsr@cableone.net or on facebook /samuelmsr
|

September 21st, 2011, 04:10 PM
|
Authorized User
|
|
Join Date: Sep 2011
Posts: 37
Thanks: 13
Thanked 0 Times in 0 Posts
|
|
Ok I am not sure what I am looking for when I run the debugger. I already posted a picture on one of my last posts of the only exception it shows me.
Other then that what am I looking for?
Thanks for your time, Imar!
__________________
Noob, whole noob, nothing but a noob, so help me God. I will learn if it kills me.....
|

September 21st, 2011, 04:24 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Quote:
Ok I am not sure what I am looking for when I run the debugger.
|
Put a Watch on the mySmtpClient and see what values are set on its properties.
Quote:
Do you possibly have MSN Messenger
|
Yes, but I prefer a forum so I can choose when I answer.
Cheers,
Imar
|
The Following User Says Thank You to Imar For This Useful Post:
|
|

September 21st, 2011, 04:34 PM
|
Authorized User
|
|
Join Date: Sep 2011
Posts: 37
Thanks: 13
Thanked 0 Times in 0 Posts
|
|
Ok I have the "Watch" information. How would you like me to post it so you can see it?
__________________
Noob, whole noob, nothing but a noob, so help me God. I will learn if it kills me.....
|

September 21st, 2011, 04:38 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|

September 21st, 2011, 04:40 PM
|
Authorized User
|
|
Join Date: Sep 2011
Posts: 37
Thanks: 13
Thanked 0 Times in 0 Posts
|
|
This is what it is showing me if I am reading it right (big time noob here):
Code:
DeliveryMethod: Network
EnableSsl: true
Host: "smtp.gmail.com"
PickupDeliveryLocation: Null
Port: 587
ServicePoint: {Service.Net.ServicePoint}
TargetName: "SMTPSVC/smtp.gmail.com"
Timeout: 100000
UseDefaultCredentials: false
That seems to be all of the pertinent data listed.
__________________
Noob, whole noob, nothing but a noob, so help me God. I will learn if it kills me.....
|
|
 |
|