Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5.1 > ASP.NET 4.5.1 General Discussion
|
ASP.NET 4.5.1 General Discussion For ASP.NET 4.5.1 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4.5.1 General Discussion 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 7th, 2015, 08:00 PM
Authorized User
 
Join Date: Mar 2011
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
Default Exception thrown Sending E-Mail Messsages Chapter 9

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!
 
Old April 19th, 2015, 01:27 AM
Friend of Wrox
 
Join Date: Feb 2014
Posts: 136
Thanks: 1
Thanked 10 Times in 10 Posts
Default

its asking for authentication so supply the call with credentials. if your logging into your yahoo account to send an email from your yahoo to an outlook account, supply your yahoo creds and vice versa.

Last edited by mmorgan30; April 19th, 2015 at 01:31 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
exception is never thrown in body of try statement annumol Pro Java 1 February 11th, 2008 06:53 AM
Database does not update, no exception thrown hexOffender VB Databases Basics 5 November 24th, 2006 03:28 PM
Exception has been thrown by the target of an invo rajasarkar ASP.NET 1.0 and 1.1 Professional 2 June 19th, 2006 03:19 AM
Autosuggest Exception thrown jellie BOOK: Professional Ajax ISBN: 978-0-471-77778-6 3 March 14th, 2006 10:19 AM
Exception thrown Invalid_Viewstate r_ganesh76 ASP.NET 1.0 and 1.1 Professional 1 December 2nd, 2005 04:32 PM





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