Insert extra fields into the email notifications

Hello,

A client has asked to the have extra fields inserted into the Web To Lead form submission notification (Lead Assignment Notification)

I followed a forum post from SugarCRM forum which was dated 2007 and last post was 2008

I followed the post - and I am not getting the fields to populate in the email - i am getting the field labels in the email notification - but the fields are not being populated.

i have updated the following in custom/modules/Leads/Lead.php

	function set_notification_body($xtpl, $lead)
	{
		global $app_list_strings;
        global $locale;

		$xtpl->assign("LEAD_NAME", $locale->getLocaleFormattedName($lead->first_name, $lead->last_name, $lead->salutation));
		$xtpl->assign("LEAD_SOURCE", (isset($lead->lead_source) ? $app_list_strings['lead_source_dom'][$lead->lead_source] : ""));
		$xtpl->assign("LEAD_STATUS", (isset($lead->status)? $app_list_strings['lead_status_dom'][$lead->status]:""));
		$xtpl->assign("LEAD_DESCRIPTION", $lead->description);
                $xtpl->assign("LEAD_INCOME_TYPE", (isset($lead->income_type_c)? $app_list_strings['income_type_list'][$lead->income_type_c]:""));
                $xtpl->assign("LEAD_INCOME_RANGE", (isset($lead->income_range_c)? $app_list_strings['income_range_list'][$lead->income_range_c]:""));
                $xtpl->assign("LEAD_PURPOSE", (isset($lead->purpose_c)? $app_list_strings['purpose_list'][$lead->purpose_c]:""));
                $xtpl->assign("LEAD_CREDIT_RATING", (isset($lead->credit_rating_c)? $app_list_strings['credit_rating_list'][$lead->credit-rating_c]:""));
                $xtpl->assign("LEAD_EMAIL", $lead->email1);
                $xtpl->assign("LEAD_MOBILE", $lead->phone_mobile);

		return $xtpl;
	}

and also have updated /custom/include/language/en_us.notify_template.html

<!-- BEGIN: Lead_Subject -->
SugarCRM Lead - {LEAD_NAME}
<!-- END: Lead_Subject -->
<!-- BEGIN: Lead -->
{ASSIGNER} has assigned a Lead to {ASSIGNED_USER}.

Name: {LEAD_NAME}
Email: {LEAD_EMAIL}
Phone: {LEAD_MOBILE}
Lead Source: {LEAD_SOURCE}
Status: {LEAD_STATUS}
Description: {LEAD_DESCRIPTION}
Income Range: {LEAD_INCOME_RANGE}
Income Type: {LEAD_INCOME_TYPE}
Purpose: {LEAD_PURPOSE}
Credit Rating: {LEAD_CREDIT_RATING}

You may review this Lead at:
<{URL}>
<!-- END: Lead -->

Any Help would be appreciated.

This seems to be a pretty common question from my clients - would be a nice feature request for future upgrade — to date i have not attempted to customize this as the clients have not pursued this request in the past.