In the book "Beginning ASP.Net 4.5.1 "by Imar - In the "Try-It-Out" Sending E-Mail Messages on p. 324 in Chapter 9 in Step 5 when I request Email.aspx in the browser I get the following exception:
-----
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.1 Authentication required
Email.aspx.vb
Line 16: mySMTPClient.Send(myMessage)------
I entered the proper information in the web.config file to send an email from my Yahoo account to my Outlook account. I included enableSsl="true" port="587" in the <network> tag. I tried removing the enableSSl and port tag - same exception. I tried sending from Outlook to Yahoo and got a slightly different exception thrown:
-----
Mailbox unavailable. The server response was: 5.1.0 Authentication required
Email.aspx.vb
Line 16: mySMTPClient.Send(myMessage)
-----
Any thoughts?
Thanks!