Re: Matt Wright's FormMail.pl

by Brian V Bonini <b-bonini(at)cox.net>

 Date:  16 Jun 2003 14:49:03 -0400
 To:  Mamie <seller(at)sellerdoor.com>
 Cc:  HWG Techniques <hwg-techniques(at)hwg.org>
 References:  sellerdoor rr rr2 gfxdesign sellerdoor2 gfxdesign2
  todo: View Thread, Original
On Mon, 2003-06-16 at 14:12, Mamie wrote:
> The form can be found at 
> http://www.theprogresscenter.com/Forms/downloads.html
> 

Ok, this is the wrong place to do this:
<input TYPE=hidden NAME="recipient" VALUE="Mamie(at)TheProgressCenter.com,$email">

It can also not work here:
@recipients = &fill_recipients(@referers,$email);
because the form vars have not been parsed yet.

In the perl script find sub send_mail and change the following:

print MAIL "To: $Config{'recipient'}\n";
    print MAIL "From: $Config{'email'} ($Config{'realname'})\n";

to something along the lines of:

print MAIL "To: $Config{'recipient'}\n";
print MAIL "CC: $Config{'email'}\n";
    print MAIL "From: $Config{'email'} ($Config{'realname'})\n";

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA