You can do it with pretty much any server side language.
Example:
AS:
on(release){
vars = new LoadVars();
vars.mailVar = someVarName;
vars.send("mailvar.php");
}
I think that's how the send method works in LoadVars(), but I don't quite remember.
PHP: mailvar.php
<?
if(!empty($_POST['mailVar'])){
mail("cook@area526.net", "My variable", $_POST['mailVar']);
}
?>
This extremely simple and untested, but you should get the just of it.