CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Send Email notification with url to new record

Print topic Send  topic

Author Message
MikeL
Posted: 08/30/2002, 11:26 AM

I'm trying to send an email notification when a record is added (upon insert). I can get the email sent but I'm stuck trying to add the record id (primary key/autoincrementing). I have the record id set to autoincrement in CCS as well. This is the code I tried to use:
Set objCDO = Server.CreateObject("CDONTS.NewMail")
objCDO.From = CCDLookUp("NAME", "USERS", "USERID = " & CCToSQL(CCGetUserID, "Text"), DBITRD)
objCDO.To = "someone@somewhere.com"
objCDO.Subject = "New User Added"
objCDO.Body = "www.url.asp?" &CCDlookUp("USERID", "USERS", "NAME LIKE " & CCToSQL(CCGetParam("NAME", Empty), "Text"), DBITRD)
objCDO.BodyFormat = 1
objCDO.MailFormat = 0
objCDO.Send
set objCDO=Nothing

Any other suggestions?
MikeL
Posted: 08/30/2002, 11:38 AM

CCS 1.0.7.0 / ASP / MSSQL 2K

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.