in reply to Email on every page hit

If your page is HTML, which is what my page_visited = 'http://companypage/index.html'; leads me to believe.

You could do something like:
#! /usr/bin/perl -T use strict; use CGI; my $cgi = new CGI; my $page = $cgi->param('page'); my %mail = ( To => 'jones@company.com', From => 'smith@company.com', Subject => "$page visited", Message => "$page was visited", smtp => '111.222.333.444' ); &sendmail(\%mail); ##************************************************ ##Do checking on the parameter for security reasons ##************************************************ print $cgi->header(); open(FILE, "/path/to/html/$page.htm"); print while(<FILE); close(FILE);
This is a simple example, I would look into using HTML::Template instead.

- Tom