p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Databases (http://p2p.wrox.com/forumdisplay.php?f=62)
-   -   sending record links from form (http://p2p.wrox.com/showthread.php?t=31787)

p2ptolu July 23rd, 2005 11:39 AM

sending record links from form
 
how do i send a record link with my form mail below i have the database and when a form is filled it sends a mail to me , i want the link to the record of the user to be sent to me so that i can click and a page with the users details is loaded from database. ? what link should be in the .Textbody

Sub SendRequestMail()

Dim objMail, objMailConf
Set objMail = Server.CreateObject("CDO.Message")
Set objMailConf = Server.CreateObject("CDO.Configuration")
'objMailConf.Fields.item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 1
'objMailConf.Fields.item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "192.168.230.10"
'objMailConf.fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
'objMailConf.Fields.item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10
objMailConf.Fields.Update
Set objMail.Configuration = objMailConf
objMail.From = "email@email.com"
objMail.To = "xxx@yahoo.com"
objMail.Subject = "testing form"
objMail.TextBody = "This is the link ........ (forum help)...... "

objMail.Fields.Update
objMail.Send
Set objMail = Nothing




eapsokha July 25th, 2005 10:02 PM

Create a page consists of two functions; inserting user info into database, and another is sending user ID link via e-mail to you. Is that what you want? Cheers.



All times are GMT -4. The time now is 03:20 PM.

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