Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Cdonts and Database
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Cdonts and Database

 Post Reply Post Reply
Author
KenW View Drop Down
Newbie
Newbie
Avatar

Joined: 29 June 2004
Location: United Kingdom
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote KenW Quote  Post ReplyReply Direct Link To This Post Topic: Cdonts and Database
    Posted: 16 November 2005 at 3:19pm
Can anyone please help I have a form when after checking is entered into an access 2000 database (See Code Below) which works fine. However I would then like to send the information entered into the database by email Cdonts.
 

        <% 'insert into database & move to next page if there are no errors
        '***************************************************************
        If strErrorMsg = "" Then
       strSQL = "SELECT * FROM tblappointments"
       objRst.Open strSQL, objConn, adOpenDynamic, adLockOptimistic
       objRst.AddNew
       objRst("apptDay") = strapptDay
       objRst("apptMonth") = strapptMonth
       objRst("apptYear") = strapptYear
       objRst("apptTime") = strapptTime
       objRst("apptFNAdvisor") = strapptFNAdvisor
       objRst("apptAdEmail") = strapptAdEmail
       objRst("clientTitle") = strclientTitle
       objRst("clientFirstName") = strclientFirstName
       objRst("clientLastName") = strclientLastName
       objRst("clientSubject") = strclientSubject
       objRst("receptionistFirstName") =      strreceptionistFirstName
       objRst("bookingTime") = strbookingTime
       objRst("bookingDate") = strbookingDate
            objRst.Update
            objRst.Close
            objConn.Close
            Set objRst = Nothing
            Set objConn = Nothing
            strErrorMsg = "User data entered into database successfully...<br>Please Email the Advisor about the Appointment"
                    
        End If
  End If
%>

 

The email address it needs to be sent to is:

objRst("apptAdEmail") = strapptAdEmail
 
Many thanks in appreciation of your help
Back to Top
Scott07 View Drop Down
Groupie
Groupie


Joined: 04 July 2002
Location: United Kingdom
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scott07 Quote  Post ReplyReply Direct Link To This Post Posted: 25 November 2005 at 3:30pm
As long as your sure you have the cdonts component installed then there is a nice tutorial below so you can learn it for yourself

http://www.webwiz.net/asp/tutorials/email_using_cdonts_tutorial.asp
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.