cdoMessage.To=Request.Form("email")

Reply

Join Date: Jul 2006
Posts: 3
Reputation: crazy_flip is an unknown quantity at this point 
Solved Threads: 0
crazy_flip crazy_flip is offline Offline
Newbie Poster

cdoMessage.To=Request.Form("email")

 
0
  #1
Jul 10th, 2006
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

  1. <%
  2.  
  3. theSchema="http://schemas.microsoft.com/cdo/configuration/"
  4. Set cdoConfig=server.CreateObject("CDO.Configuration")
  5. cdoConfig.Fields.Item(theSchema & "sendusing")= 2
  6. cdoConfig.Fields.Item(theSchema & "smtpserver")= "10.10.10.3"'
  7. cdoConfig.Fields.Update
  8.  
  9. set cdoMessage=Server.CreateObject("CDO.Message")
  10. cdoMessage.Configuration=cdoConfig
  11. cdoMessage.From= "xxx"
  12. cdoMessage.To=Request.Form("email")
  13. cdoMessage.Subject="website registration details"
  14. cdoMessage.Textbody ="Hello" & Request.Form("fstname") & " " & request.form("lstname") & "," & vbnewline & "Username: " & Request.Form("username") & vbNewLine & vbnewline & "Cheers Sharky"
  15. cdoMessage.send
  16.  
  17. Set cdoMessage=Nothing
  18. Set cdoConfig=Nothing
  19.  
  20. %>
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 3
Reputation: crazy_flip is an unknown quantity at this point 
Solved Threads: 0
crazy_flip crazy_flip is offline Offline
Newbie Poster

Re: cdoMessage.To=Request.Form("email")

 
0
  #2
Jul 10th, 2006
By the way the form that i am trying to get information on has an insert action on it.
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 166
Reputation: Lafinboy is an unknown quantity at this point 
Solved Threads: 7
Lafinboy's Avatar
Lafinboy Lafinboy is offline Offline
Junior Poster

Re: cdoMessage.To=Request.Form("email")

 
0
  #3
Jul 11th, 2006
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?
If I've been a help please confirm by clicking the Add to Lafinboy's Reputation link in the header of this reply.

Lafinboy Productions
:: Website Design :: Website Development ::

Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC