Open PilotData.class.php and look for the following:
foreach($results as $row)
{
// Set them retired
self::updateProfile($row->pilotid, array('retired'=>1));
Template::Set('pilot', $row);
$pilot_retired_template = Template::Get('email_pilot_retired.tpl', true, true, true);
Util::SendEmail($row->email, Lang::get('email.pilot.retired.subject'), $pilot_retired_template);
}
And change it to the following and see if it makes any differences.
foreach($results as $row)
{
// Set them retired
self::updateProfile($row->pilotid, array('retired'=>1));
Template::Set('pilot', $row);
$pilot_retired_template = Template::Get('email_pilot_retired.tpl', true, true, true);
$subject = SITE_NAME.':You have been marked as retired.';
Util::SendEmail($row->email, $subject, $pilot_retired_template);
}