Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 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 October 19th, 2009, 02:13 PM
Friend of Wrox
 
Join Date: Oct 2009
Posts: 341
Thanks: 14
Thanked 3 Times in 3 Posts
Smile emailig in web shop

First of all thanks a lot to all authors of this book. This is really productive book.
This is my first interaction to this forum and I think I will be getting my answer. I just downloaded the code and analysed it for the webshop, I,ve modified it like updating the category list etc. everything is working fine except emailing. None of the two (admin and user) is getting email of the order.
I've taken care of appsetting in web.config file and in the application itself. But nothing is working
Code:
<appSettings>
    <add key="MailFromAddress" value="[email protected]"/>
    <add key="ConfirmationMessageLocation" value="~/StaticText/ConfirmationMessage.txt"/>
  </appSettings>
And
Code:
Dim mySmtpClient As New System.Net.Mail.SmtpClient
      theMessage = theMessage.Replace("##ShoppingCart##", _
              GetHtmlFromControl(myGridView))
      theMessage = theMessage.Replace("##OrderNumber##", orderId.ToString())
      mySmtpClient.Send("[email protected]", emailAddress, theSubject, theMessage)
So please can any body help me in this regard, as this is the very new concept to me (i.e. emailing) and I know it is the most important part of application because it is the way to know about orders made by user.

Thank you.........
 
Old October 19th, 2009, 02:19 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,

Make sure you configured a valid mail server under the element <mailSetitings> under <system.net> in the web.config file. You need to add a server, and optionally user credentials if your mail server requires authentication.

Also, make sure that [email protected] is replaced with your own mail account that is allowed to send mail.

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 October 19th, 2009, 02:27 PM
Friend of Wrox
 
Join Date: Oct 2009
Posts: 341
Thanks: 14
Thanked 3 Times in 3 Posts
Smile emailing

yes sir, I have changed the place holder with my own email id.
And does credential go to mail settings element under ststem.net element or in appsettings element
 
Old October 19th, 2009, 02:35 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Take a look at page 389 and 390 for more info on configuring the mail server.

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 October 19th, 2009, 02:44 PM
Friend of Wrox
 
Join Date: Oct 2009
Posts: 341
Thanks: 14
Thanked 3 Times in 3 Posts
Smile emailing

ok sir, before I go to book just please kindly make clear my one doubt that this emailing functionality as described in the code file (downloaded from net) will be applicable to both (admin and user) or only to user.

Thank you.........
 
Old October 19th, 2009, 02:48 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I don't understand what you're asking so I can't clear that doubt.

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 October 19th, 2009, 02:55 PM
Friend of Wrox
 
Join Date: Oct 2009
Posts: 341
Thanks: 14
Thanked 3 Times in 3 Posts
Default

SIR, I am trying to ask that will email (as used in code) regarding orders made by user go to both (admin and user) or to user only.
 
Old October 19th, 2009, 03:19 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Which version / language of the book are you using?

The standard version of the WebShop does not send an e-mail confirmation at all.

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 October 19th, 2009, 03:26 PM
Friend of Wrox
 
Join Date: Oct 2009
Posts: 341
Thanks: 14
Thanked 3 Times in 3 Posts
Smile

Actually I've no book yet. I've been introducing to this book and hence to forum just 5 days before. And I could understand such huge code because I am not novice to Asp.net So it took me less time to understand the code and modify it. But emailing it getting a problem. And I am using Vb.net . Can U please suggest which version of webshop deals with emailing????????? I downloaded code from forum.
 
Old October 19th, 2009, 03:50 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

In that case, what made you think the application is able to send out e-mail?

Check out the bonus content that comes with the book.... You'll see how to implement the mail functionality.

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 8, shop Beowulf BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 3 September 30th, 2010 03:59 PM
Web Shop TB1962 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 January 26th, 2009 05:24 AM
atlas and web shop gtjr92 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 October 21st, 2006 03:38 AM
Building an E-Shop Varg_88 Beginning PHP 0 March 15th, 2006 05:25 AM
WroxUnited Shop datae33 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 March 4th, 2006 06:37 AM





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