email form question

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

    email form question

    Does anyone know if it is possible to create a form on a Windows server
    (front page, cold fusion ect...) that will send you the outcome and
    automatically insert the users email address in the "To..." box so you won't
    have to when hitting reply?

    Thank you for the help!

    Joann


  • David Dorward

    #2
    Re: email form question

    JM Okuzono wrote:
    [color=blue]
    > Does anyone know if it is possible to create a form on a Windows server
    > (front page, cold fusion ect...) that will send you the outcome and
    > automatically insert the users email address in the "To..." box so you
    > won't have to when hitting reply?[/color]

    Its possible, but not an HTML authoring issue. How you go about it depends
    on the language. In PHP its a case of using the 4th (IIRC) parameter to the
    mail() function to specify a custom set of mail headers including a From
    line.

    --
    David Dorward http://dorward.me.uk/

    Comment

    • Geoff Muldoon

      #3
      Re: email form question

      dorward@yahoo.c om says...
      [color=blue][color=green]
      > > Does anyone know if it is possible to create a form on a Windows server
      > > (front page, cold fusion ect...) that will send you the outcome and
      > > automatically insert the users email address in the "To..." box so you
      > > won't have to when hitting reply?[/color]
      >
      > Its possible, but not an HTML authoring issue. How you go about it depends
      > on the language. In PHP its a case of using the 4th (IIRC) parameter to the
      > mail() function to specify a custom set of mail headers including a From
      > line.[/color]

      While acknowledging that this is OT for c.i.w.a.h ....

      Actually, that depends on the level of "trust" your email server has in
      PHP, most having anti-mail-relay prevention measures which over-ride
      many header settings. More recent versions of PHP have a 5th parameter
      which handles this better.

      $from_addr="me@ somewhere";
      $params="-f".$from_add r;
      mail($to, $subject, $body, $headers, $params);

      Geoff M

      Comment

      • Philipp Lenssen

        #4
        Re: email form question

        JM Okuzono wrote:
        [color=blue]
        > Does anyone know if it is possible to create a form on a Windows
        > server (front page, cold fusion ect...) that will send you the
        > outcome and automatically insert the users email address in the
        > "To..." box so you won't have to when hitting reply?
        >[/color]


        If you mean a form that will somehow magically know the email of the
        user, no, that's not possible. It would be a security risk. You can
        however use IExplorer-specific workarounds.

        VCard
        <http://msdn.microsoft.com/library/de...op/author/dhtm
        l/reference/properties/vcard_name.asp>

        --
        Google Blogoscoped
        A daily news blog and community covering Google, search, and technology.

        Comment

        • Beauregard T. Shagnasty

          #5
          Re: email form question

          JM Okuzono pounced upon this pigeonhole and pronounced:[color=blue]
          > Does anyone know if it is possible to create a form on a Windows server
          > (front page, cold fusion ect...) that will send you the outcome and
          > automatically insert the users email address in the "To..." box so you won't
          > have to when hitting reply?[/color]

          You can do that - fill in the visitor's email - on a windows server, but
          it has to be a server-side process. I do this for one of my clients, using
          ASP. In part, the script reads as follows, with the various parts coming
          from the HTML contact form:

          if lcemail<>"" then
          lcemail = "<" & lcemail & ">"
          else

          end if

          objCDO.From = lcname & lcemail
          objCDO.To = "Clientname<cli entemail@exampl e.com>"
          objCDO.Subject = cSubject
          objCDO.TextBody = cBody
          objCDO.Send

          The client is trained to look for what appear to be legitimate email
          addresses when he downloads the mail, and only reply if this is the case.
          The HTML form has no place for the visitor to enter a TO: address, only
          his/her FROM: address.

          In the couple years this form has been in use, nobody has ever filled it
          out without entering a valid FROM: address. Knock wood.

          --
          -bts
          -This space intentionally left blank.

          Comment

          Working...