Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 11th, 2012, 04:41 PM
Authorized User
Points: 134, Level: 2
Points: 134, Level: 2 Points: 134, Level: 2 Points: 134, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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;info@planetwrox.com&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="info@planetwrox.com">
      </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
Reply With Quote
  #2 (permalink)  
Old March 12th, 2012, 03:28 AM
Imar's Avatar
Wrox Author
Points: 72,045, Level: 100
Points: 72,045, Level: 100 Points: 72,045, Level: 100 Points: 72,045, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,083
Thanks: 80
Thanked 1,587 Times in 1,563 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!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 02:46 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.