in reply to generate mailto: behaviour in a script

It doesn't work that way, because the get is run on the server, but you want to open the mail client at the client.

I have no idea if non-http redirects work, but you could try to send a redirect header (with CGI::redirect) with mailto:foo@bar.baz

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.