CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
script that allows you to respond to forms

 



rburgio
Deleted

Mar 30, 2000, 1:12 PM

Post #1 of 7 (3207 views)
script that allows you to respond to forms Can't Post

Currently i'm using a script for a form on a site, but the problem with it is that when the client receives the form, he wants to be able to simply hit the "REPLY" button and respond to the sender immediately, but when he tries to do this the address located in the "TO" folder is his own and not that of the person sending the form as it usually is....do you know of a script that can do this?


Jasmine
Administrator

Apr 1, 2000, 4:42 PM

Post #2 of 7 (3207 views)
Re: script that allows you to respond to forms [In reply to] Can't Post

There's a whole bunch of form processing programs -- some have the email of the person sending the message in the FROM field (which would translate to "TO" when hitting reply). You may wish to demo some of the programs listed at http://www.perlarchive.com/guide/Form_Processing


rburgio
Deleted

Apr 3, 2000, 10:19 PM

Post #3 of 7 (3207 views)
Re: script that allows you to respond to forms [In reply to] Can't Post

thanks again for your reply...i'm afraid i am still a bit confused so i've included the code i'm using below..hope it helps...many thanks,

<form method="get" action="http://www.YOUR-DOMAIN.com/cgi-bin/mailer.cgi">
<input type="hidden" name="to" value="yourname@yourdomain.com">
<input type="hidden" name="subject" value="a subject">
<input type="hidden" name="title" value="a title">
<input type="hidden" name="redirect" value="http://www.domain.com/">

and then there is a form with an email field as shown below

<font size="2">E-mail address </font><input type="text" name="email" size="30"><br>




rburgio
Deleted

Apr 4, 2000, 9:38 AM

Post #4 of 7 (3207 views)
Re: script that allows you to respond to forms [In reply to] Can't Post

thanks for the help...i'm still a bit confused...when you say the "from" field, do you mean as i have it below?...and if so, how do i define what the email value field is?...thanks,

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


Jasmine
Administrator

Apr 4, 2000, 9:52 AM

Post #5 of 7 (3207 views)
Re: script that allows you to respond to forms [In reply to] Can't Post

That depends on the individual program.

Some programs allow you change what email address the message is from with each form by using a hidden tag like you posted above.

Some programs require that you set your email address statically by entering your email address within the program. For example, if you have to enter something like this:

$email = 'your@emailhere.com';

then you have a static from address.

If you have a form already working (and you're using Sendmail on your server to send email), then you can look for your mailing subroutine, and change the following line:

<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR>


print MAIL "From: $FORM{'email'}\n";
</pre><HR></BLOCKQUOTE>

This assumes that your form input is in a hash named %FORM and that your visitor's email address field is named email. You may need to change this to make it work on your program. This simple change will allow you to hit REPLY after receiving the message, and the REPLY-TO email address will be the address of the person who submitted the form.

If the above confuses you, it may be easier to post the emailing portion of your program here so we can help more.


Jasmine
Administrator

Apr 4, 2000, 1:04 PM

Post #6 of 7 (3207 views)
Re: script that allows you to respond to forms [In reply to] Can't Post

Actually, we need the actual program code for sending email, not the html code for the form. Sorry I wasn't clearer Smile


lsommerer
Deleted

Apr 5, 2000, 10:18 PM

Post #7 of 7 (3207 views)
Re: script that allows you to respond to forms [In reply to] Can't Post

FormMail does what you want to do. I've used it on a half dozen web sites. It's easy to setup and free. You can find it here:
http://worldwidemart.com/scripts/formmail.shtml

Lloyd Sommerer www.gatheringspot.com

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives