Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
|
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
 
Old April 28th, 2010, 02:44 AM
Friend of Wrox
 
Join Date: Apr 2010
Posts: 125
Thanks: 20
Thanked 3 Times in 3 Posts
Default 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
 
Old April 28th, 2010, 02:48 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,

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
__________________
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:
morteza (May 1st, 2010)
 
Old April 30th, 2010, 12:10 AM
Friend of Wrox
 
Join Date: Apr 2010
Posts: 125
Thanks: 20
Thanked 3 Times in 3 Posts
Red face

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?
 
Old April 30th, 2010, 12:13 AM
Friend of Wrox
 
Join Date: Apr 2010
Posts: 125
Thanks: 20
Thanked 3 Times in 3 Posts
Default 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
 
Old April 30th, 2010, 06:12 AM
Friend of Wrox
 
Join Date: Mar 2010
Posts: 99
Thanks: 21
Thanked 6 Times in 4 Posts
Default

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:
morteza (May 1st, 2010)
 
Old April 30th, 2010, 11:27 PM
Friend of Wrox
 
Join Date: Apr 2010
Posts: 125
Thanks: 20
Thanked 3 Times in 3 Posts
Default

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
 
Old May 1st, 2010, 04:23 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
__________________
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 May 2nd, 2010, 04:37 AM
Friend of Wrox
 
Join Date: Apr 2010
Posts: 125
Thanks: 20
Thanked 3 Times in 3 Posts
Thumbs up

Here only port :8080 is unblocked
thanks
 
Old May 2nd, 2010, 05:27 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Then I think you're out of luck...

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:
morteza (May 3rd, 2010)
 
Old May 12th, 2010, 12:26 AM
Friend of Wrox
 
Join Date: Apr 2010
Posts: 125
Thanks: 20
Thanked 3 Times in 3 Posts
Question

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Webmail(hotmail,gmail,yahoo,ect..) contacts reader dv.rameshkumar ASP.NET 3.5 Professionals 0 May 8th, 2009 01:39 AM
Email through Gmail in C# tobriain C# 5 April 5th, 2007 07:57 AM
Open email from yahoo or hotmail server wehave74 VB How-To 1 December 23rd, 2006 04:49 AM
Email sending problem aneesh_sunu@yahoo.co.in ASP.NET 1.0 and 1.1 Basics 3 December 21st, 2006 01:16 PM
Problem in sending Email rama26 J2EE 0 April 24th, 2006 12:07 AM





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