943,996 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 4357
  • ASP RSS
Jul 10th, 2006
0

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

Expand Post »
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

ASP Syntax (Toggle Plain Text)
  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. %>
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
crazy_flip is offline Offline
3 posts
since Jul 2006
Jul 10th, 2006
0

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

By the way the form that i am trying to get information on has an insert action on it.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
crazy_flip is offline Offline
3 posts
since Jul 2006
Jul 11th, 2006
0

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

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?
Reputation Points: 16
Solved Threads: 7
Junior Poster
Lafinboy is offline Offline
166 posts
since Jul 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: dual simultanious actions from 1 form
Next Thread in ASP Forum Timeline: Where is Frontpage Sever Extension 2002





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC