Okay I know how to retreive the URL, how do I place it into the subject of the email.
Please see the code below, very simple I know but I don't need anything more complicated than this.
#!/usr/bin/perl
use CGI;
$co = new CGI;
print $co->header,
$co->start_html
(
-title=>'mail a friend',
-author=>'Mark',
-BGCOLOR=>'white',
-LINK=>'red'
);
if ($co->param()) {
$from = $co->param('e-mail');
$from =~ s/@/@/;
# $subject = $co->param('subject');
$text = "$ENV{'HTTP_REFERER'}";
$text =~ s/
open(MAIL, '| /usr/lib/sendmail -t -oi');
print MAIL <
To: [email protected]
From: $from
Subject: you have got to see this
$text
EOF
close (MAIL);
}
Thanks
Mark