Sending data from form in an email using ASP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Joe Farage
    New Member
    • Mar 2011
    • 26

    Sending data from form in an email using ASP

    I have a page called OES_reg.html that has a form on it. 2 textboxes and 2 checkboxes and a submit button.

    This form is read by OES_regreply.as p which takes the information and does 2 things with it
    1. displays the information to the user so they can verify
    2. sends an email with the information from the form for my records.

    my problem lies with the email. Everything is working except that I can't get the body of the email to send the data that it pulls from the form (1 of the textboxes, and both checkboxes)
    Code is below:
    Code:
    <%
    Set myMail=CreateObject("CDO.Message")
    myMail.Subject="NEW Office Equipment Smash Registration"
    myMail.From=request.form("email")
    myMail.To="JoeJr@BuffaloPrinting.com"
    myMail.TextBody=response.write(request.form("name")& " ")"has registered for the Office Equipment Smash! fundraiser event.  They registered for the"response.write(" " & request.form("reg") & " ")"event(s)."
    myMail.Send
    set myMail=nothing
    %>
  • DrBunchman
    Recognized Expert Contributor
    • Jan 2008
    • 979

    #2
    Hi Joe,

    Are you still having trouble with this?

    Dr B

    Comment

    • Joe Farage
      New Member
      • Mar 2011
      • 26

      #3
      no i figured it out. thanks

      Comment

      Working...