0

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 

%>
2
Contributors
2
Replies
3
Views
11 Years
Discussion Span
Last Post by Lafinboy
0

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

0

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?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.