[wellylug] FormMail
Michael Dittmer
michael at inside-job.co.nz
Thu Jan 25 20:46:38 NZDT 2007
Hi All
I have a formmail script on a website (running on a linux box in a
shared hosting environment) that when you press the submit button it
emails the address in the script. Up to this point in time the script
has worked fine, however I need to make changes to the script so that
when a person enters their email address in the necessary field they
also get a copy of the email sent.
The code I believe that needs changing is below, however I can provide a
link to the entire FormMail.pl script file. I currently haven't
developed the HTML form that the script gets info from as I have only
been asked about the change this afternoon.
Thanks
Michael
BEGIN
{
$DEBUGGING = 1;
$emulate_matts_code= 0;
$secure = 1;
$allow_empty_ref = 1;
$max_recipients = 5;
$mailprog = '/usr/sbin/sendmail -oi -t';
$postmaster = '';
@referers = qw(www.somedomain.co.nz somedomain.co.nz localhost);
@allow_mail_to = qw(someaddress at somedomain.co.nz localhost);
@recipients = ();
%recipient_alias = ();
@valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER
HTTP_USER_AGENT);
$locale = '';
$charset = 'iso-8859-1';
$date_fmt = '%A, %B %d, %Y at %H:%M:%S';
$no_content = 0;
$double_spacing = 1;
$wrap_text = 0;
$wrap_style = 1;
$send_confirmation_mail = 0;
$confirmation_text = <<'END_OF_CONFIRMATION';
From: you at your.com
Subject: form submission
Thank you for your form submission.
More information about the wellylug
mailing list