loplo Posted January 26, 2013 Report Share Posted January 26, 2013 Hey guys, the SITE_NAME is not being recognized in the email subject. Is there a workaround? SITE_NAME: You've been marked as retired. Quote Link to comment Share on other sites More sharing options...
freshJet Posted January 26, 2013 Report Share Posted January 26, 2013 Just change it to your name instead Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted January 28, 2013 Moderators Report Share Posted January 28, 2013 If you mean the mass mailer in admin, use " <?php echo SITE_NAME ;?> " instead of just SITE_NAME itself. Quote Link to comment Share on other sites More sharing options...
loplo Posted January 28, 2013 Author Report Share Posted January 28, 2013 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. Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted January 28, 2013 Moderators Report Share Posted January 28, 2013 So you receive emails like this :"SITE_NAME: You've been marked as retired" ? Quote Link to comment Share on other sites More sharing options...
loplo Posted January 28, 2013 Author Report Share Posted January 28, 2013 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. Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted January 28, 2013 Moderators Report Share Posted January 28, 2013 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); } 1 Quote Link to comment Share on other sites More sharing options...
loplo Posted January 28, 2013 Author Report Share Posted January 28, 2013 Is there a way to test this or I have to wait x days, until I retire automatically. I've tried to retire myself, manually, from the backend, but this way no email is sent. Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted January 28, 2013 Moderators Report Share Posted January 28, 2013 Set the inactive day to 1 and wait until 12 midnight. 1 Quote Link to comment Share on other sites More sharing options...
loplo Posted January 30, 2013 Author Report Share Posted January 30, 2013 Thanks parkho, it worked. Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted January 30, 2013 Moderators Report Share Posted January 30, 2013 gr8 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.