
Jasmine
Administrator
Apr 4, 2000, 9:52 AM
Post #5 of 7
(8173 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.
|