RE: A form question (Help ASAP)
by Chuck Evans <Chucke(at)captura.com>
|
| Date: |
Tue, 23 May 2000 09:40:20 -0700 |
| To: |
"'HWG Techniques'" <hwg-techniques(at)hwg.org> |
| |
todo: View
Thread,
Original
|
|
I've read somewhere that placing your "to" addresses in your HTML form as a
hidden field is a security risk, since then someone can copy your form
(linking it to your CGI script) and then use it to send emails to anyone
they like.
It's better to put the addresses within the CGI itself.
---------------------------------------------------------
Chuck Evans
Web Marketing Manager
Captura Software, Inc.
(425) 424-1155
chucke(at)captura.com
www.captura.com
-----Original Message-----
From: Brian V Bonini [mailto:brian(at)livenet.net]
Sent: Tuesday, May 23, 2000 7:13 AM
To: sunilbahl(at)tigersden.i-p.com
Cc: christie(at)thearmidalemall.com
Subject: Re: A form question (Help ASAP)
This solution is overkill......
You DO NOT need to alter the perl script
to have formmail send to multiple recipients.
All you have to do is put multiple e-mail addresses in
the recipient field of your form, separated by commas.
<input type=hidden name="recipient"
value="email1(at)address1.com,email2(at)address2.net">
-Brian
*******************
>Date: Tue, 23 May 2000 11:25:12 +0800
>From: "Sunil Bahl" <sunilbahl(at)tigersden.i-p.com>
>Subject: Re: A form question (Help ASAP)
>
>Hi Christie,
>
>My service provider is using Matt's FormMail on his server but it comes
preconfigured. i will write
>to him as ask him if he can make the necessary changes.
>
>If he does not then what are the other options??
>
>Thanks.
>
>Regards,
>Sunil.
>
>
>- -----Original Message-----
>From: "Christie Cooksey" <christie(at)thearmidalemall.com>
>Date: Mon, 22 May 2000 12:36:55 +1000
>To: "Sunil Bahl" <sunilbahl(at)tigersden.i-p.com>
>Subject: Re: A form question (Help ASAP)
>
>
>> Sunil
>>
>> I'm not sure, but I use Matt's FormMail...try this:
>>
>> 1. Find this... " # Define the configuration associative array."
>> and add... 'cc_to','',
>>
>> 2. Find this...
>> print MAIL "To: $Config{'recipient'}\n";
>> print MAIL "From: $Config{'email'} ($Config{'realname'})\n";
>> and add...
>> print MAIL "CC: $Config{'cc_to'}\n";
>>
>> 3. Then add this to your form:
>> <input type="hidden" name="cc_to" value="someone(at)something.com>
>>
>> Let me know if it works. *smile*
>>
>> Cheers :0)
>> Christie Cooksey
>> Websites "Designed by Christie"
>> http://www.designedbychristie.com
>>
>> ----- Original Message -----
>> From: "Sunil Bahl" <sunilbahl(at)tigersden.i-p.com>
>> To: <hwg-techniques(at)hwg.org>
>> Sent: Sunday, May 21, 2000 3:10 PM
>> Subject: A form question (Help ASAP)
>>
>>
>> > Dear Friends,
>> >
>> > I am making a site for a company that has 9 offices. Now what my client
>> wants is that when the form is filled one copy of it goes to him and
another
>> goes to the office, which is selected, from a drop down box in the form.
>> >
>> > Does anyone know how this can be done????? The code for my form is as
>> follows:
>> >
>> > <form method=post action="/bin/formmail.pl">
>> > <input type=hidden name="recipient" value="xyz(at)clientsdomain.com">
>> > <input type=hidden name="subject" value="Contact Form">
>> > <input type=hidden name="redirect"
>> value="http://www.clientsdomain.com/thankyou.htm">
>> >
>> > <b>Branch : </b>
>> > <select name="branch" size=1>
>> > <option selected value="branch">Select the branch you wish to
>> contact</option>
>> > <option value="Bombay">Bombay</option>
>> > <option value="Calcutta">Calcutta</option>
>> > <option value="Goa">Goa</option>
>> > </select>
>> >
>> > </form>
>> >
>> > So what do I have to add to the above coding so that the mail gets
>> directed to the necessary office plus a copy to the owner of the site????
>> >
>> > Await your replies via e-mail.
>> >
>> > Thanks in advance.
>> >
>> > Best Wishes,
>> > Sunil.
>>
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.