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
|