Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. 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 Databases 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 8th, 2005, 09:38 AM
Authorized User
 
Join Date: Jan 2005
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to p2ptolu Send a message via Yahoo to p2ptolu
Default cdonts

how do i send e-mails to users from my asp form?

 
Old March 8th, 2005, 11:48 AM
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

<%
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") = "smtp.aaa.co.uk"
         .Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = "info@aaa.net"
         .Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "info"
         .Fields.Update
End With
Set objCDOSYS.Configuration = objCDOConf

With objCDOSYS
         .From = "info@aaa.co.uk"
         .To = "crmpicco@hotmail.com"
         .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....."
%>


www.crmpicco.co.uk
www.milklemonadechocolate.uk.tt





Similar Threads
Thread Thread Starter Forum Replies Last Post
using CDONTS maunishq ASP.NET 1.0 and 1.1 Basics 1 August 23rd, 2007 09:35 AM
CDONTS mikedeepak Classic ASP Components 3 August 26th, 2004 06:52 PM
CDONTS preeti Wrox Book Feedback 1 August 11th, 2004 09:39 AM
about mailing using CDONTS anurag_j_r Classic ASP XML 1 March 12th, 2004 04:38 AM
CDONTS asims12 Classic ASP Basics 1 November 13th, 2003 10:25 PM





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