Hi I am tryin to get a page to send an email back to the user, I can mail to myself but I want it to take it from the previous page. please help its driving me mad

Cheers Phil

<%

theSchema="http://schemas.microsoft.com/cdo/configuration/" 
Set cdoConfig=server.CreateObject("CDO.Configuration") 
cdoConfig.Fields.Item(theSchema & "sendusing")= 2 
cdoConfig.Fields.Item(theSchema & "smtpserver")= "10.10.10.3"'
cdoConfig.Fields.Update 

set cdoMessage=Server.CreateObject("CDO.Message")
cdoMessage.Configuration=cdoConfig 
cdoMessage.From= "xxx"
cdoMessage.To=Request.Form("email")
cdoMessage.Subject="website registration details"
cdoMessage.Textbody ="Hello" & Request.Form("fstname") & " " & request.form("lstname") & "," & vbnewline &  "Username: " & Request.Form("username") & vbNewLine & vbnewline & "Cheers Sharky"
cdoMessage.send

Set cdoMessage=Nothing 
Set cdoConfig=Nothing 

%>

Recommended Answers

All 2 Replies

By the way the form that i am trying to get information on has an insert action on it.

First thing to do would be to response.write out you form variables to verify that the form data is being passed through to the script correctly.

Are you getting any errors, or just a blank page?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.