Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 14th, 2010, 06:58 AM
Registered User
 
Join Date: Mar 2010
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Arrow SendingMail event is not functioning accurately?

Hi.Thank you Imar for your response.

Well,actually I have followed the instruction on this link

http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=505

However,when the first time I put the code below :

Dim SmtpClient As mySmtpClient = New SmtpClient()
mySmtpClient.EnableSsl = True
mySmtpClient.Send(e.Message)
e.Cancel = True

inside SendingMail event, the code seems have a few errors stated under
mySmtpClient instance. Then after I have try a few times to fix it, I closed my VWD, and restart back...and everything is functioning.
I can send email from SignUp.aspx page and also from ContactUs,aspx. I feel so relief after its working so fine.

But not until a few second after I stopped debugging my website, the code inside the SendingMail events which is the code that I stated above is missing.

And I try to insert back the code.Still, the same error is repeating. The mySmtpClient is in error and I can't debug my website to test the SignUp.aspx page again

Anything you would like to suggest?I appreciate your kindness...
 
Old April 14th, 2010, 07: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

Sorry, I don't understand the question. Can you elaborate and be much more specific?

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 15: SendingMail Event areed24 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 10 February 22nd, 2009 03:36 PM
Accurately Count Elements interrupt Javascript How-To 0 June 13th, 2005 02:21 AM
Dynamic freport list not functioning dbkester Access 0 December 28th, 2003 01:10 PM





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