Jump to content

SITE_NAME in email subject


loplo

Recommended Posts

I'm talking about the automated email, the one is sent out to the member to notify him that his status changed to retired.

The subject of the received emails, now, looks like this: "SITE_NAME: You've been marked as retired"

The site name, in any other emails is OK, but the one that is announcing the retirement.

Link to comment
Share on other sites

Sorry for the misunderstanding.

So, my VA is set to retire pilots after 30 days of inactivity.

The pilots receive an email to let them know that their status has been changed.

The subject of the received email is "SITE_NAME: You've been marked as retired" instead of "xxxxxx : You've been marked as retired". xxxxxx being the VA name.

Link to comment
Share on other sites

  • Moderators

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);
}

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...