Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : 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 March 11th, 2012, 04:41 PM
Authorized User
 
Join Date: Feb 2012
Posts: 22
Thanks: 0
Thanked 4 Times in 4 Posts
Default New problem with Chapter 16

When doing the automatic email response in the Sending Confirmation E-Mail with CreateUserWizard I kept getting an error message.

Now my Demo Email page works just fine so what is the diff?

I looked at your web.config file and notice this :

Code:
    <mailSettings>
      <smtp deliveryMethod="SpecifiedPickupDirectory" from="Planet Wrox &lt;[email protected]&gt;">
        <specifiedPickupDirectory pickupDirectoryLocation="C:\TempMail"/>
      </smtp>
    </mailSettings>
How would that work for me?? I have no access to the Planet Wrox mail server even if there is one and there is no "C:\TempMail" folder on my C drive.

The book mentions this:

Code:
    <mailSettings>
      <smtp deliveryMethod="SpecifiedPickupDirectory" from="[email protected]">
      </smtp>
    </mailSettings>
no mention what so ever about:

Code:
<specifiedPickupDirectory pickupDirectoryLocation="C:\TempMail"/>
what would be the correct usage for my setup? would like to see it work the way it was intended i know I can do the event route explained in the book but still want to see it work the way stated in the try it out

So where do I go from here Imar? Thanks in advance
 
Old March 12th, 2012, 03:28 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,

Quote:
How would that work for me?? I have no access to the Planet Wrox mail server even if there is one and there is no "C:\TempMail" folder on my C drive.
Quote:
no mention what so ever about: <specifiedPickupDirectory pickupDirectoryLocation="C:\TempMail"/>
It *is* described in the book. Check out page 318 that shows you how to configure this and explains you need to create the folder first.

When you use this option, e-mail is never really sent over the network; instead .eml message files are simply dropped in this folder.

Using @PlanetWrox.com doesn't affect anything; it's jsust a (random) from address. In most cases that will just work, although some SMTP servers check if the From address is really from a domain they manage and reject the message if it isn't.

Hope this helps,

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 16 problem drak3n BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 2 March 12th, 2011 12:48 PM
problem in chapter 16 koko70 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 February 5th, 2011 03:40 AM
Chapter 16 Profile Problem Will BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 April 28th, 2009 04:40 PM
problem with chapter 16 andarius40 BOOK: Beginning Visual C++ 6 5 September 24th, 2006 04:11 PM
Problem with code from chapter 16 earlsinclair2001 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 December 5th, 2005 01:58 AM





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