Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : in C# and VB 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 December 26th, 2014, 08:07 PM
Authorized User
 
Join Date: Aug 2011
Posts: 44
Thanks: 14
Thanked 0 Times in 0 Posts
Default SMTP troubles - Chapter 9

Hello Imar,

following your explanations in chapter 9, I manage to send an email dropping it in a folder on my local hard drive, but I fail to send it both from gmail and yahoo accounts.

Excerpt from Web.config for yahoo
Code:
<smtp deliveryMethod="Network"  from="xxxxxx@yahoo.com">
      <network host="smtp.mail.yahoo.com" password="xxxxxxx"     userName="xxxxxx@yahoo.com" />
</smtp>

Excerpt from Web.config for gmail
Code:
<smtp deliveryMethod="Network" from="yyyyyy@gmail.com">
        <network enableSsl="true" host="smtp.gmail.com" password="yyyyyy" userName="yyyyyyy@gmail.com" port="587" />
</smtp>
The error I get is the following:
From the script debugger in Internet Explorer
File ScriptResource.axd
Line: 940
Error: Sys.WebForms.PageRequestManagerServerErrorExceptio n: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500


Can you give me some hints ?
Thank you
 
Old December 27th, 2014, 04:59 PM
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,

Try removing the UpdatePanel so you can see the real error message. Maybe that sheds some light?

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!
 
Old December 28th, 2014, 07:36 PM
Authorized User
 
Join Date: Aug 2011
Posts: 44
Thanks: 14
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Imar View Post
Hi there,
Try removing the UpdatePanel so you can see the real error message.
The real error I get - both for Yahoo and Gmail SMTP - is the following:

Quote:
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.1 Authentication Required.
In the past, I had developed your Planet Wrox website in the 3.5 version of your book - on VS 2008 and Windows 7 Ultimate edition - and I managed to send emails from the ContactForm.

I've tried to launch the same old web site from my current VS 2012 on Windows 8.1 and I cannot send emails any more. I suppose the problem is somewhat related to Windows 8.

Can you give some hints ?

Thank you

Antonius

Last edited by Antonius Block; December 31st, 2014 at 07:06 AM..
 
Old January 4th, 2015, 05:20 PM
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,

Are you 100% correct you modified the correct web.config? Your code looks fine as it sets up a secure connection.

Also, for Gmail, did you set up an app specific account? https://support.google.com/mail/answer/1173270?hl=en

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
Chapter 9 - SMTP Nick Makin BOOK: Beginning ASP.NET 4 : in C# and VB 4 January 5th, 2012 09:10 AM
Chapter 9- The SMTP server address? leemark2k3 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 5 August 4th, 2010 01:10 PM
JQuery Troubles- Chapter 11, Exercise 1 Princess Rose BOOK: Beginning ASP.NET 4 : in C# and VB 6 May 3rd, 2010 05:35 PM
SMTP error in Chapter 4 - mailDefinition seetha_l BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 August 28th, 2008 02:25 PM
Troubles with Programm AlisaSmi Excel VBA 0 March 7th, 2007 07:50 AM





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