Exemple #1
0
 /**
  * #6
  * @param  \Member $referrer
  * @return [type]
  */
 public static function sendFeeReminderWithAdvertisingsReferrer(\Member $referrer, \Member $recruited)
 {
     $email = $referrer->getEmail();
     $locale = Localizer::get('mail.fee_reminder_referrer_with_advertisings');
     $num = $referrer->getNum();
     $fullName = \Tbmt\view\Factory::buildMemberFullNameString($referrer);
     $recruited_fullname = \Tbmt\view\Factory::buildMemberFullNameString($recruited);
     return self::send($email, $fullName, Localizer::insert($locale['subject'], ['recruited_fullname' => $recruited_fullname]), Localizer::insert($locale['body'], ['fullname' => $fullName, 'member_id' => $num, 'recruited_fullname' => $recruited_fullname, 'recruited_firstname' => $recruited->getFirstName(), 'recruited_signup_date' => \Tbmt\Localizer::dateLong($recruited->getSignupDate()), 'bankaccount' => \Tbmt\view\Factory::buildBankAccountStr()], false));
 }