Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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
  #1 (permalink)  
Old July 1st, 2005, 05:32 AM
Authorized User
 
Join Date: Jun 2005
Location: , , .
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default Send email & submit to DB at same time

Hi

I am creating a feedback form and I need it to do the follwing:


1.on buttonclcick send a text email to feedback@example.com
2. If the user asks for email updates check to see if the user is already in the database and if no, insert this info into the db.

I really dont even know where to start, I am using .NET and C#

Any links or help would be appriciated.

Thanks
Brett Dalldorf

  #2 (permalink)  
Old July 1st, 2005, 07:58 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Generate the email with the System.Web.Mail.MailMessage and System.Web.Mail.SmtpMail class.

Then you can do the database actions.

-Peter
  #3 (permalink)  
Old July 2nd, 2005, 08:49 AM
Authorized User
 
Join Date: Jun 2005
Location: , , .
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Okay thanks, I am making headway now.

Brett



Similar Threads
Thread Thread Starter Forum Replies Last Post
Send an automatic email alert Based on Date/time lakshmi_annayappa ASP.NET 1.0 and 1.1 Basics 3 May 28th, 2007 12:07 AM
auto tracker function &send personalised email miracles Excel VBA 1 April 27th, 2007 04:43 AM
How 2 Send Email When Submit Clicked BrianWren ASP.NET 1.0 and 1.1 Professional 4 April 21st, 2006 11:55 AM
How to send form data without pressing SUBMIT eapsokha Classic ASP Professional 2 March 1st, 2004 09:58 AM
ASP form to email & update Access db seala Classic ASP Basics 3 July 22nd, 2003 01:39 AM





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