How do I?

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

    How do I?

    I have an ASP page that I created, nothing special, it is just a form that
    takes input from the user and it sends the results to a pre-specified
    mailbox.

    Here is my dilema, hopefully someone can assist.

    The input from the users goes into the e-mail no problem, it sends fine. I
    have the below code that grabs IP address and UserInformation . How do I
    pass this information in the e-mail as well?

    <%
    response.write "<div align=center>"
    response.write "<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0>" & vbcrlf
    response.write "<TR>" & vbcrlf

    response.write "<TD align=center BGCOLOR=#990033 WIDTH=200>" & vbcrlf
    response.write( "<FONT COLOR=WHITE><ST RONG>IP Address")
    response.write "</TD>" & vbcrlf
    response.write "<TD align=center BGCOLOR=#990033 WIDTH=200>" & vbcrlf
    response.write( "<FONT COLOR=WHITE><ST RONG>Domain\Net work Login")
    response.write "</TD>" & vbcrlf
    response.write "</TR>" & vbcrlf

    IP_address = Request.ServerV ariables("REMOT E_ADDR")
    LogonUser = Request.ServerV ariables("REMOT E_USER")

    response.write "<TR>" & vbcrlf
    response.write "<TD align=center width=200>" & vbcrlf
    response.write( IP_address)
    response.write "</TD>" & vbcrlf

    response.write "<TD align=center width=200>" & vbcrlf
    response.write( LogonUser)
    response.write "</TD>" & vbcrlf

    response.write "</TR>" & vbcrlf
    response.write "</TABLE>" & vbcrlf
    response.write "</div>"

    %>

    I want to pass IP_address and LogonUser.

    Thanks in advance for any assistance you might be able to provide. The rest
    of the code is straight HTML.




  • Curt_C [MVP]

    #2
    Re: How do I?

    not sure I follow... what you have here has nothing to do with an e-mail....
    This only writes out to the screen. You'll have to put this all into a
    string and use that for the .Body of the the e-mail.

    Is that what you are asking?

    Curt

    "HartSA" <dthmtlgod@yaho o.com> wrote in message
    news:eXZ3pAvhEH A.712@TK2MSFTNG P09.phx.gbl...[color=blue]
    >I have an ASP page that I created, nothing special, it is just a form that
    > takes input from the user and it sends the results to a pre-specified
    > mailbox.
    >
    > Here is my dilema, hopefully someone can assist.
    >
    > The input from the users goes into the e-mail no problem, it sends fine.
    > I
    > have the below code that grabs IP address and UserInformation . How do I
    > pass this information in the e-mail as well?
    >
    > <%
    > response.write "<div align=center>"
    > response.write "<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0>" & vbcrlf
    > response.write "<TR>" & vbcrlf
    >
    > response.write "<TD align=center BGCOLOR=#990033 WIDTH=200>" & vbcrlf
    > response.write( "<FONT COLOR=WHITE><ST RONG>IP Address")
    > response.write "</TD>" & vbcrlf
    > response.write "<TD align=center BGCOLOR=#990033 WIDTH=200>" & vbcrlf
    > response.write( "<FONT COLOR=WHITE><ST RONG>Domain\Net work Login")
    > response.write "</TD>" & vbcrlf
    > response.write "</TR>" & vbcrlf
    >
    > IP_address = Request.ServerV ariables("REMOT E_ADDR")
    > LogonUser = Request.ServerV ariables("REMOT E_USER")
    >
    > response.write "<TR>" & vbcrlf
    > response.write "<TD align=center width=200>" & vbcrlf
    > response.write( IP_address)
    > response.write "</TD>" & vbcrlf
    >
    > response.write "<TD align=center width=200>" & vbcrlf
    > response.write( LogonUser)
    > response.write "</TD>" & vbcrlf
    >
    > response.write "</TR>" & vbcrlf
    > response.write "</TABLE>" & vbcrlf
    > response.write "</div>"
    >
    > %>
    >
    > I want to pass IP_address and LogonUser.
    >
    > Thanks in advance for any assistance you might be able to provide. The
    > rest
    > of the code is straight HTML.
    >
    >
    >
    >[/color]


    Comment

    • Aaron [SQL Server MVP]

      #3
      Re: How do I?

      Did you try

      response.write "<input type=hidden name=IP_Address value='" & IP_Address &
      "'>"

      Make sure this is AFTER the <form ... > tag and before the </form> tag.

      --
      Please contact this domain's administrator as their DNS Made Easy services have expired.

      (Reverse address to reply.)




      "HartSA" <dthmtlgod@yaho o.com> wrote in message
      news:eXZ3pAvhEH A.712@TK2MSFTNG P09.phx.gbl...[color=blue]
      > I have an ASP page that I created, nothing special, it is just a form that
      > takes input from the user and it sends the results to a pre-specified
      > mailbox.
      >
      > Here is my dilema, hopefully someone can assist.
      >
      > The input from the users goes into the e-mail no problem, it sends fine.[/color]
      I[color=blue]
      > have the below code that grabs IP address and UserInformation . How do I
      > pass this information in the e-mail as well?
      >
      > <%
      > response.write "<div align=center>"
      > response.write "<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0>" & vbcrlf
      > response.write "<TR>" & vbcrlf
      >
      > response.write "<TD align=center BGCOLOR=#990033 WIDTH=200>" & vbcrlf
      > response.write( "<FONT COLOR=WHITE><ST RONG>IP Address")
      > response.write "</TD>" & vbcrlf
      > response.write "<TD align=center BGCOLOR=#990033 WIDTH=200>" & vbcrlf
      > response.write( "<FONT COLOR=WHITE><ST RONG>Domain\Net work Login")
      > response.write "</TD>" & vbcrlf
      > response.write "</TR>" & vbcrlf
      >
      > IP_address = Request.ServerV ariables("REMOT E_ADDR")
      > LogonUser = Request.ServerV ariables("REMOT E_USER")
      >
      > response.write "<TR>" & vbcrlf
      > response.write "<TD align=center width=200>" & vbcrlf
      > response.write( IP_address)
      > response.write "</TD>" & vbcrlf
      >
      > response.write "<TD align=center width=200>" & vbcrlf
      > response.write( LogonUser)
      > response.write "</TD>" & vbcrlf
      >
      > response.write "</TR>" & vbcrlf
      > response.write "</TABLE>" & vbcrlf
      > response.write "</div>"
      >
      > %>
      >
      > I want to pass IP_address and LogonUser.
      >
      > Thanks in advance for any assistance you might be able to provide. The[/color]
      rest[color=blue]
      > of the code is straight HTML.
      >
      >
      >
      >[/color]


      Comment

      • HartSA

        #4
        Re: How do I?

        I didn't attach the e-mail piece. I am using sendmail.asp.
        I just need to pass the IP address which is taken from VBScript and put that
        in e-mail.

        This is what the user inputs and get sent by e-mail now (this works fine).

        Office: SY

        Problem Type: WORD

        Corporate Systems ID: N/A

        Description of Problem: This is yet another test of the application

        IMS ID: N/A

        Claim Number: N/A



        I have HTML INPUT statements that gather the above information. Can I
        incorporate the VBSCRIPT piece into HTML somehow?




        "Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
        news:ue6TuDvhEH A.244@TK2MSFTNG P10.phx.gbl...[color=blue]
        > not sure I follow... what you have here has nothing to do with an[/color]
        e-mail....[color=blue]
        > This only writes out to the screen. You'll have to put this all into a
        > string and use that for the .Body of the the e-mail.
        >
        > Is that what you are asking?
        >
        > Curt
        >
        > "HartSA" <dthmtlgod@yaho o.com> wrote in message
        > news:eXZ3pAvhEH A.712@TK2MSFTNG P09.phx.gbl...[color=green]
        > >I have an ASP page that I created, nothing special, it is just a form[/color][/color]
        that[color=blue][color=green]
        > > takes input from the user and it sends the results to a pre-specified
        > > mailbox.
        > >
        > > Here is my dilema, hopefully someone can assist.
        > >
        > > The input from the users goes into the e-mail no problem, it sends fine.
        > > I
        > > have the below code that grabs IP address and UserInformation . How do I
        > > pass this information in the e-mail as well?
        > >
        > > <%
        > > response.write "<div align=center>"
        > > response.write "<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0>" & vbcrlf
        > > response.write "<TR>" & vbcrlf
        > >
        > > response.write "<TD align=center BGCOLOR=#990033 WIDTH=200>" & vbcrlf
        > > response.write( "<FONT COLOR=WHITE><ST RONG>IP Address")
        > > response.write "</TD>" & vbcrlf
        > > response.write "<TD align=center BGCOLOR=#990033 WIDTH=200>" & vbcrlf
        > > response.write( "<FONT COLOR=WHITE><ST RONG>Domain\Net work Login")
        > > response.write "</TD>" & vbcrlf
        > > response.write "</TR>" & vbcrlf
        > >
        > > IP_address = Request.ServerV ariables("REMOT E_ADDR")
        > > LogonUser = Request.ServerV ariables("REMOT E_USER")
        > >
        > > response.write "<TR>" & vbcrlf
        > > response.write "<TD align=center width=200>" & vbcrlf
        > > response.write( IP_address)
        > > response.write "</TD>" & vbcrlf
        > >
        > > response.write "<TD align=center width=200>" & vbcrlf
        > > response.write( LogonUser)
        > > response.write "</TD>" & vbcrlf
        > >
        > > response.write "</TR>" & vbcrlf
        > > response.write "</TABLE>" & vbcrlf
        > > response.write "</div>"
        > >
        > > %>
        > >
        > > I want to pass IP_address and LogonUser.
        > >
        > > Thanks in advance for any assistance you might be able to provide. The
        > > rest
        > > of the code is straight HTML.
        > >
        > >
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Dthmtlgod666

          #5
          Re: How do I?

          I will give that a try. Thanks

          "Aaron [SQL Server MVP]" <ten.xoc@dnartr eb.noraa> wrote in message
          news:%23o%23UQH vhEHA.2624@TK2M SFTNGP12.phx.gb l...[color=blue]
          > Did you try
          >
          > response.write "<input type=hidden name=IP_Address value='" & IP_Address &
          > "'>"
          >
          > Make sure this is AFTER the <form ... > tag and before the </form> tag.
          >
          > --
          > http://www.aspfaq.com/
          > (Reverse address to reply.)
          >
          >
          >
          >
          > "HartSA" <dthmtlgod@yaho o.com> wrote in message
          > news:eXZ3pAvhEH A.712@TK2MSFTNG P09.phx.gbl...[color=green]
          >> I have an ASP page that I created, nothing special, it is just a form
          >> that
          >> takes input from the user and it sends the results to a pre-specified
          >> mailbox.
          >>
          >> Here is my dilema, hopefully someone can assist.
          >>
          >> The input from the users goes into the e-mail no problem, it sends fine.[/color]
          > I[color=green]
          >> have the below code that grabs IP address and UserInformation . How do I
          >> pass this information in the e-mail as well?
          >>
          >> <%
          >> response.write "<div align=center>"
          >> response.write "<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0>" & vbcrlf
          >> response.write "<TR>" & vbcrlf
          >>
          >> response.write "<TD align=center BGCOLOR=#990033 WIDTH=200>" & vbcrlf
          >> response.write( "<FONT COLOR=WHITE><ST RONG>IP Address")
          >> response.write "</TD>" & vbcrlf
          >> response.write "<TD align=center BGCOLOR=#990033 WIDTH=200>" & vbcrlf
          >> response.write( "<FONT COLOR=WHITE><ST RONG>Domain\Net work Login")
          >> response.write "</TD>" & vbcrlf
          >> response.write "</TR>" & vbcrlf
          >>
          >> IP_address = Request.ServerV ariables("REMOT E_ADDR")
          >> LogonUser = Request.ServerV ariables("REMOT E_USER")
          >>
          >> response.write "<TR>" & vbcrlf
          >> response.write "<TD align=center width=200>" & vbcrlf
          >> response.write( IP_address)
          >> response.write "</TD>" & vbcrlf
          >>
          >> response.write "<TD align=center width=200>" & vbcrlf
          >> response.write( LogonUser)
          >> response.write "</TD>" & vbcrlf
          >>
          >> response.write "</TR>" & vbcrlf
          >> response.write "</TABLE>" & vbcrlf
          >> response.write "</div>"
          >>
          >> %>
          >>
          >> I want to pass IP_address and LogonUser.
          >>
          >> Thanks in advance for any assistance you might be able to provide. The[/color]
          > rest[color=green]
          >> of the code is straight HTML.
          >>
          >>
          >>
          >>[/color]
          >
          >[/color]


          Comment

          Working...