PERL, PHP or ASP...one or the other on a server with a mailserver...
use the mail function in PHP or whatever its called in ASP, or a whole complicated slew of things in PERL...
easier imho would be php...
any language as well would allow you to show those vars on the next html page