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 January 20th, 2009, 06:45 PM
Registered User
 
Join Date: Jan 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default chapter 9:Creating Email messages pg310

Hi Everybody,
Imar thank you for the great book i absolute enjoyed in every single page i have read so far.
I got stuck in reading email on demo Email.aspx. My ISP provider is AOL and i have set the network host = smtp.aol.com as they advice me when i called them Also i have added my AOL user name+ password on web.conf.
When i try to run the browser i get this error;
Server Error in '/' Application.

Syntax error, command unrecognized. The server response was: CLIENT AUTHENTICATION REQUIRED. USE ESMTP EHLO AND AUTH.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.Mail.SmtpException: Syntax error, command unrecognized. The server response was: CLIENT AUTHENTICATION REQUIRED. USE ESMTP EHLO AND AUTH.

Source Error:

Line 26:
Line 27: SmtpClient mySmtpClient = new SmtpClient();
Line 28: mySmtpClient.Send(myMessage);
Line 29: }
Line 30: }

In my knowledge it appears that i still need further authentication to access smtp.aol.com and also they ask to use ESMTP is this new kind of protocol which .net 3.5 doesnt support?
If decide to run my web in separate ISP then probably that wont be a problem but as u can see line 28 mySmtpClient.Send(myMessage); doesnot being recognized as the class. I hope u have understood my problem

Will appreciate for ur advise.

thank you
 
Old January 21st, 2009, 03:29 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,

Good to hear you like the book so much!

Take a look at page 308 and 309. Did you configure it like that? That should normally do the trick....

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!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating E-Mail Messages janla2112 ASP.NET 3.5 Basics 3 October 26th, 2008 01:23 PM
chapter 03 ..i am getting error messages realiest BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 July 17th, 2006 03:01 PM
chapter 03 ..i am getting error messages realiest BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 July 7th, 2006 08:17 AM
Multipart messages in Chapter 10 gclarkson BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 February 8th, 2006 07:27 AM





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