Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 September 21st, 2009, 05:39 PM
Friend of Wrox
 
Join Date: Sep 2009
Posts: 165
Thanks: 5
Thanked 6 Times in 6 Posts
Default trying

Ok sir, you mean that I should write my complete email address , and what about the field "PASSWORD" in web config file.....
 
Old September 21st, 2009, 05:44 PM
Friend of Wrox
 
Join Date: Sep 2009
Posts: 165
Thanks: 5
Thanked 6 Times in 6 Posts
Default error persists

sir, I have tried the code u suggested as to remove the try catch block but now it shows the following error

The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required.
 
Old September 21st, 2009, 06:01 PM
Friend of Wrox
 
Join Date: Sep 2009
Posts: 165
Thanks: 5
Thanked 6 Times in 6 Posts
Default

Ok sir please tell me what else care I should take? And What is meant by Does your gmail provides you SMTP Server.
 
Old September 21st, 2009, 06:05 PM
Friend of Wrox
 
Join Date: Sep 2009
Posts: 165
Thanks: 5
Thanked 6 Times in 6 Posts
Default

hello sir R u there????????????
 
Old September 21st, 2009, 06:09 PM
Friend of Wrox
 
Join Date: Sep 2009
Posts: 165
Thanks: 5
Thanked 6 Times in 6 Posts
Default

Quote:
Originally Posted by jack_hilary View Post
hello sir R u there????????????
I have been waiting for u.........
 
Old September 22nd, 2009, 02:00 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,

A couple of things....

First, this is not a chat site, but a forum. This means you don't have a direct conversation with others. It migt take a while before you get a reply, so please be patient. Messages like "are you there?" do nothing but clutter up the thread. When "i'm there", I'll post a reply; when I am not, I won't. I am probably in a different timezone than you so it was way past midnight when your messages came in.

Secondly, this:
Quote:
What is meant by Does your gmail provides you SMTP Server
That's not what I said. I said:
Quote:
If you're using a Gmail account, does that also mean you're using GMail's mail server?
Even though you're using @gmail as the sender's address, doens't mean you're using their SMTP server. You could have been using a local or LAN based SMTP server, or one provided by your Internet service provider.
Quote:
and what about the field "PASSWORD" in web config file.....
What do you think this is for? This is clearly your password that you use to log in to Gmail. The password is used by .NET to log in to GMail when it's sending your e-mail.
Quote:
you mean that I should write my complete email address
Yes. In web.config and in your code you need to write your full e-mail address; not just the part before @gmail.com
Try it again with the correct user name and password in web.config, and with using EnableSsl set to true. It should work.

Otherwise, try the code I posted earlier using .Credentials and make sure you replace your mail server name, you@yourprovider.com and "YourPassword" with our own mail server name, full gmail address and password.

Hope this helps,

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!

Last edited by Imar; September 22nd, 2009 at 02:05 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 16 Viewforum issue EgoGen BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 June 12th, 2008 04:18 AM
chapter 12 loginin issue marcusth BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 2 December 27th, 2007 01:11 PM
session_start issue (Chapter 12) preston2003 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 7 April 15th, 2005 03:09 AM





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