Data not delivered from form using ASPmailer......

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ciberguy

    Data not delivered from form using ASPmailer......

    I created a form that collects information from a user via a web page. The
    form appears to work well - it won't let you submit the form until required
    data is place in the required fields.

    I receive the email from the form via the ISP but the data collected from
    the form is not there. Where did it go?

    Here is a copy of the code I am using - It's standard.

    <!--- mailer.asp --->
    <%
    Set Mailer = Server.CreateOb ject("SMTPsvg.M ailer")
    Mailer.FromName = Request.Form("m ailer")
    Mailer.FromAddr ess= "mailer@net.com "
    Mailer.RemoteHo st = "000.000.00 .11"
    Mailer.AddRecip ient "mailer","maile r@net.com"
    Mailer.Subject = "Customer Request from web site"
    strMsgHeader = "Form information follows:" & vbCrLf
    for i=1 to Request.Form.Co unt
    strMsgInfo=strM sgInfo & Request.Form.Ke y(i) & "- " &
    Request.Form.It em(i) & vbCrLf
    next
    strMsgFooter = vbCrLf & "End of information"
    Mailer.BodyText = strMsgHeader & strMsgInfo & strMsgFooter
    if Mailer.SendMail then %>
    <% Response.Write "Mail sent..." %>
    <% Response.redire ct "thankyou.h tm" %>
    <% else %>
    <% Response.Write "Mail send failure. Error was " & Mailer.Response
    end if
    %>

    I know that this code works on another site I have created NOT using CSS.
    This is the first site that I am creating a site using CSS.

    Here is the address to the form:


    Thanks!

    Any suggestions or comments welcome!


  • Ray at

    #2
    Re: Data not delivered from form using ASPmailer......

    Put in a

    RESPONSE.WRITE BodyText
    RESPONSE.END '''optional - if not used, commentout the response.redire ct
    line

    just before teh "If Mailer.Send..." line. This will show you what's
    supposed to be sent.

    Also, you don't have to do:

    <% code %>
    <% code %>
    <% code %>
    <% code %>

    You can just do:

    <%
    code
    code
    code
    code
    %>

    Ray at home

    "Ciberguy" <slipnot@rogers .com> wrote in message
    news:%23eld9uPS EHA.3012@tk2msf tngp13.phx.gbl. ..[color=blue]
    > I created a form that collects information from a user via a web page. The
    > form appears to work well - it won't let you submit the form until[/color]
    required[color=blue]
    > data is place in the required fields.
    >
    > I receive the email from the form via the ISP but the data collected from
    > the form is not there. Where did it go?
    >
    > Here is a copy of the code I am using - It's standard.
    >
    > <!--- mailer.asp --->
    > <%
    > Set Mailer = Server.CreateOb ject("SMTPsvg.M ailer")
    > Mailer.FromName = Request.Form("m ailer")
    > Mailer.FromAddr ess= "mailer@net.com "
    > Mailer.RemoteHo st = "000.000.00 .11"
    > Mailer.AddRecip ient "mailer","maile r@net.com"
    > Mailer.Subject = "Customer Request from web site"
    > strMsgHeader = "Form information follows:" & vbCrLf
    > for i=1 to Request.Form.Co unt
    > strMsgInfo=strM sgInfo & Request.Form.Ke y(i) & "- " &
    > Request.Form.It em(i) & vbCrLf
    > next
    > strMsgFooter = vbCrLf & "End of information"
    > Mailer.BodyText = strMsgHeader & strMsgInfo & strMsgFooter
    > if Mailer.SendMail then %>
    > <% Response.Write "Mail sent..." %>
    > <% Response.redire ct "thankyou.h tm" %>
    > <% else %>
    > <% Response.Write "Mail send failure. Error was " & Mailer.Response
    > end if
    > %>
    >
    > I know that this code works on another site I have created NOT using CSS.
    > This is the first site that I am creating a site using CSS.
    >
    > Here is the address to the form:
    > http://www.previewmysite.com/quintin...yneighbour.htm
    >
    > Thanks!
    >
    > Any suggestions or comments welcome!
    >
    >[/color]


    Comment

    • Ciberguy

      #3
      Re: Data not delivered from form using ASPmailer......


      "Ray at <%=sLocation% > [MVP]" <myfirstname at lane34 dot com> wrote in
      message news:%23gTP4WRS EHA.3660@tk2msf tngp13.phx.gbl. ..[color=blue]
      > Put in a
      >
      > RESPONSE.WRITE BodyText
      > RESPONSE.END '''optional - if not used, commentout the response.redire ct
      > line
      >
      > just before teh "If Mailer.Send..." line. This will show you what's
      > supposed to be sent.[/color]

      Thanks Ray!!!!!!!!!!!! !!!!!!!!!!!!!!! !!


      Comment

      Working...