I did a quick hack for this the other day, the file is located at:
/administrator/components/com_comprofiler/comprofiler.class.php
On about line 3261 there is this function:
[code:1]function _replaceVariables($msg, $row)[/code:1]
Within it i changed it from being something like this:
[code:1]
$msg = str_replace("[USERNAME]", $row->username, $msg);
$msg = str_replace("[NAME]", $row->name, $msg);
$msg = str_replace("[EMAILADDRESS]", $row->email, $msg);
$msg = str_replace("[SITEURL]", $mosConfig_live_site, $msg);
$msg = str_replace("[DETAILS]", $this->_getUserDetails($row,$mosConfig_emailpass), $msg);
$msg = str_replace("[CONFIRM]", $confirmLink, $msg );
[/code:1]
...to something like this:
[code:1]
$msg = str_replace("[USERNAME]", $row->username, $msg);
$msg = str_replace("[NAME]", $row->name, $msg);
$msg = str_replace("[EMAILADDRESS]", $row->email, $msg);
changed here
$msg .= "Referred By: ".$row->cb_referredby."\n";
$msg .= "Company: ".$row->cb_company."\n";
$msg = str_replace("[SITEURL]", $mosConfig_live_site, $msg);
$msg = str_replace("[DETAILS]", $this->_getUserDetails($row,$mosConfig_emailpass), $msg);
$msg = str_replace("[CONFIRM]", $confirmLink, $msg );
[/code:1]
Its a little bit dodgy though, i have a feeling its now appending Referred By and Company to every email...
Hopefully this helps get you started!