Füge unmittelbar vor
$txt_mail_changead = "Aenderung der Kundenadresse (Standardadresse):\t".$_SESSION['customer_id']."\n".$comp_changead_txt.$firstname."\n".$lastname."\n".$street_address."\n".$postcode."\n".$city."\n".$country."\n";
diesen Code ein
$c_query = xtc_db_query("select customers_cid as cid from ".TABLE_CUSTOMERS." where customers_id = '".(int) $_SESSION['customer_id']."'");
$c = xtc_db_fetch_array($c_query);
jetzt kannst Du anstelle $_SESSION['customer_id'] mit $c['cid'] die Kundennummer hier übertragen, sofern der Kunde eine Kundennummer hat.
$txt_mail_changead = "Aenderung der Kundenadresse (Standardadresse):\t".$c['cid']."\n".$comp_changead_txt.$firstname."\n".$lastname."\n".$street_address."\n".$postcode."\n".$city."\n".$country."\n";
$html_mail_changead = "<b>Aenderung der Kundenadresse (Standardadresse): ".$c['cid']."</b><br>".$comp_changead_html.$firstname."<br>".$lastname."<br>".$street_address."<br>".$postcode."<br>".$city."<br>".$fetch['countries_name']."<br>";
Gruss
Hanspeter