1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

html email responder

Discussion in 'Software Development' started by Stan52806, Jan 6, 2003.

Mark Solved
Thread Status:
Not open for further replies.
Advertisement
  1. Stan52806

    Stan52806 Guest Thread Starter

    When a html email is sent there needs to be a link in the message so the receiver can click on this link and a return email will be returned with the receivor's email address in the subject line.

    I have everything working OK except, what must be done to have the receivers email address printed in the subject line?

    Any suggestions would be appreciated. Thanks.
     
  2. Rockn

    Rockn

    Joined:
    Jul 29, 2001
    Messages:
    21,334
    And you are accomplishing this in straight html with no cgi, perl, asp or other scripting?
     
  3. Stan52806

    Stan52806 Guest Thread Starter

    Yes, other than formmail.pl. (See following code snippet).
    Any help to clean this up would be appreciated.

    ----------------------------------
    <!--
    <form action="/cgi-sys/formmail.pl" method="post">

    <input type="hidden" name="recipient" value="[email protected]">

    <input type="hidden" name="subject"
    value="SPECIAL MESSAGE">

    <input type="hidden" name="redirect"
    value="thanks.html">

    <input type="hidden" name="return_link_url" value="submit.html">

    <input type="hidden" name="report" value="REMOTE_HOST,HTTP_USER_AGENT">

    <input type="hidden" name="required" value="email">

    <input color="ff0000">
    <input type="text" name="RECIPIENT'S EMAIL" size=45>

    <input name="action" type="submit" value="Submit">
    <input name="action" type="reset" value="Reset">

    </form>
    -->
     
  4. Rockn

    Rockn

    Joined:
    Jul 29, 2001
    Messages:
    21,334
    The code would be appreciated also....LOL

    Use the PHP button in the message and then paste your code between the tags
     
  5. Stan52806

    Stan52806 Guest Thread Starter

    What is the PHP Button? I've tried to send the form code but it didn't come through.
     
  6. Rockn

    Rockn

    Joined:
    Jul 29, 2001
    Messages:
    21,334
    There is a button above where you enter your message here....

    <img src="http://forums.techguy.org/attachment.php?s=&postid=671273">
     

    Attached Files:

    • php.jpg
      php.jpg
      File size:
      19.6 KB
      Views:
      136
  7. Stan52806

    Stan52806 Guest Thread Starter

    I must be exeptionaly dense, but I can find these controls. Where do I look?

    Attached is a form.txt file that contains the form.

    I would like to have the name and email address filled when the form is displayed.

    Thanks, I appreciate you help.
     

    Attached Files:

    • form.txt
      File size:
      679 bytes
      Views:
      123
  8. Rockn

    Rockn

    Joined:
    Jul 29, 2001
    Messages:
    21,334
    THe user name and email address is never going to display when the form opens unless they directly enter the information in the text boxes. If you want the subject line to read the senders email address on the other end you need to pass the form data for the text box name email to the perl script and have that process the form the recipient gets. There is nothing to do from your email form that will accomplish this. Post the contents of the formmail.pl
     
  9. Stan52806

    Stan52806 Guest Thread Starter

    Thanks for you help. It looks like I need to take a different approach.
     
  10. Snake~eyes

    Snake~eyes

    Joined:
    Apr 18, 2002
    Messages:
    640
    PHP is the approach I would take, this could very easily be accomplished in php
     
  11. Stan52806

    Stan52806 Guest Thread Starter

    Sorry for the delayed answer, I've was gone.

    I've downloaded this php program from:
    http://www.boaddrink.com/projects/phpformmail/

    Program Name:
    phpformmail_classic-1.05.0.zip

    I think this program will do what I want. The server for my web site is currently running php. Because I am so unknowledge about php, I have questions and would appreciate your help.

    I've changed the address as requested in the docs.

    1. Does formmail.php need to be located in a special directory or what directory should it be located in?

    2. Is formmail.php called by by a standard html link? (It will not run as a stand-a-loan).

    I may have more questions once this gets running.

    Thanks.
     
  12. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/111760

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice