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

April 28th, 2010, 02:44 AM
|
Friend of Wrox
|
|
Join Date: Apr 2010
Posts: 125
Thanks: 20
Thanked 3 Times in 3 Posts
|
|
Problem sending email via gmail and hotmail
hi Imar i am problem by sending email via gmail like my friend at another topic
like my friend , i configure my web.config but i get error like this (in hotmail and gmail) can you help me?
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 65.55.172.254:587
|

April 28th, 2010, 02:48 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
Can you show me the code and configuration you're using? Did you follow the instructions on page 318 and 320 and did you add port="587" to your web.config settings?
Imar
|
The Following User Says Thank You to Imar For This Useful Post:
|
|

April 30th, 2010, 12:10 AM
|
Friend of Wrox
|
|
Join Date: Apr 2010
Posts: 125
Thanks: 20
Thanked 3 Times in 3 Posts
|
|
Yes i flowed your book
<system.net>
<mailSettings>
<smtp deliveryMethod ="Network" from ="Morteza"/>
<network host="smtp.gmail.com" username="user" password = "pass" port = "587"/>
</smtp>
</mailSettings>
</system.net>
i am from iran is this limit for me?
|

April 30th, 2010, 12:13 AM
|
Friend of Wrox
|
|
Join Date: Apr 2010
Posts: 125
Thanks: 20
Thanked 3 Times in 3 Posts
|
|
Book
Imar your book is easy to learn for everyone. This book is one of best book that i saw in my life.
thanks for your trying . Thanks
|

April 30th, 2010, 06:12 AM
|
Friend of Wrox
|
|
Join Date: Mar 2010
Posts: 99
Thanks: 21
Thanked 6 Times in 4 Posts
|
|
I guess that your configuration do lack of the enableSsl for the google gmail server. As said on page 318 of the book.. the server supplied by gmail require to use SSL.  So all you have to do is add enableSsl="true" in your <network... tag
Hope that help.
|
The Following User Says Thank You to Rushino For This Useful Post:
|
|

April 30th, 2010, 11:27 PM
|
Friend of Wrox
|
|
Join Date: Apr 2010
Posts: 125
Thanks: 20
Thanked 3 Times in 3 Posts
|
|
Since port 587 and a lof of many other port in my university is blocked , I can not send email from google smtp . I test the in my home PC and work fine .
Thank you very much
|

May 1st, 2010, 04:23 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Quote:
Since port 587 and a lof of many other port in my university is blocked , I can not send email from google smtp .
|
But maybe they provide you with an alternative SMTP server that you can use instead?
Imar
|

May 2nd, 2010, 04:37 AM
|
Friend of Wrox
|
|
Join Date: Apr 2010
Posts: 125
Thanks: 20
Thanked 3 Times in 3 Posts
|
|
Here only port :8080 is unblocked
thanks
|

May 2nd, 2010, 05:27 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Then I think you're out of luck...
Imar
|
The Following User Says Thank You to Imar For This Useful Post:
|
|

May 12th, 2010, 12:26 AM
|
Friend of Wrox
|
|
Join Date: Apr 2010
Posts: 125
Thanks: 20
Thanked 3 Times in 3 Posts
|
|
Hi Imar
after i do successfully this exercise now after two weeks i get such error:
The remote certificate is invalid according to the validation procedure
is this by google???
|
|
 |
|