hello,
add this code to the sendurl.asp page
Code:
<%
' Email Form '
Dim iMsg,tVisitor, tvisitoremail, tfriend, tfriendmail, tnotes, thedate, thetime
Set iMsg = CreateObject("CDO.Message")
Dim iConf
Set iConf = CreateObject("CDO.Configuration")
tVisitor = request.Form("visitor")
tvisitoremail = request.Form("visitormail")
tfriend = request.Form("friend")
tfriendmail = request.Form("friendmail")
tnotes = request.Form("notes")
thedate = date()
thetime = time()
Dim Flds
Set Flds = iConf.Fields
Flds("http://schemas.microsoft.com/cdo/configuration/sendusing") = 1
Flds( _
"http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory") _
= "c:\inetpub\mailroot\pickup"
Flds.Update
Set iMsg.Configuration = iConf
'SEND EMAIL TO
iMsg.To = tfriendmail
''''''''''''''''''''''''''''''''''''''''
'SEND EMAIL FROM
iMsg.From = "email@domain.com"
''''''''''''''''''''''''''''''''''''''''
'MESSAGE SUBJECT
iMsg.Subject = "Message Subject"
''''''''''''''''''''''''''''''''''''''''
iMsg.htmlBody = "<strong> Visitor: </strong>" & Trim(tVisitor) & vbCrLf _
& "<br><strong>Visitor's Email: </strong>" & Trim(tvisitoremail) & vbCrLf _
& "<br><strong>Friends Name: </strong>" & Trim(tfreind) & vbCrLf _
& "<br><strong>Friends Email: </strong>" & Trim(tfreindmail) & vbCrLf _
& "<br><strong>Message: </strong>" & Trim(tNotes) & vbCrLf _
& "<br><strong>Time: </strong>" & Trim(thetime) & vbCrLf _
& "<br><strong>Date: </strong>" & Trim(theDate) & vbCrLf
iMsg.Send
response.redirect("otherpage.asp")
%>
let me know how it went
Cheers
Bookmarks