Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP 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
 
Old March 15th, 2005, 01:08 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default CDO.Message form field

I have a asp page called 'conf_booking.asp':
Code:
<%
Dim objCDOConf,objCDOSYS
Set objCDOSYS = Server.CreateObject("CDO.Message")
Set objCDOConf = Server.CreateObject ("CDO.Configuration")
With objCDOConf
         .Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "post.demon.co.uk"
         .Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = "[email protected]"
         .Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "*pAsSwOrD*"
         .Fields.Update
End With
Set objCDOSYS.Configuration = objCDOConf

With objCDOSYS
         .From = "[email protected]"
         .To = "[email protected]"
         .Subject = "Booking Confirmation - "&pnrno&""
         .HTMLBody = "<html><h2>Booking Confirmation from "&agent_name&"</h2><p>This email has been generated automatically.</p><br><p>The status of PNR number: <b>"&pnrno&"</b> has changed to Confirmed</p><br><p>Lead Passenger: "&pass_forename_in&" "&pass_surname&"</p></html>"
         .Send
End with
Set objCDOSYS = Nothing
'response.write "Email Sent....."
%>

This code will automatically send an email to [email protected]. This line is here:
.To = "[email protected]"

How can i create a form field in another table and store this in the MySQL DB so that this '.To:' field is populated with the correct email address?
i.e. the one that has been chosen and stored in the MySQL DB.

Picco

www.crmpicco.co.uk
www.crmpicco.co.uk.tt
www.milklemonadechocolate.uk.tt
www.griswolds.uk.tt
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk





Similar Threads
Thread Thread Starter Forum Replies Last Post
Source: CDO.Message.1 please help me:) ilknur SQL Server 2000 1 July 23rd, 2006 12:52 PM
Need help related CDO.Message shankhan Classic ASP Basics 9 January 2nd, 2005 07:08 PM





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