Beispiel #1
0
 public function lenderInviteViaEmail($lender, $email, $subject, $custom_message)
 {
     $lender_invite = new Invite();
     $lender_invite->setLender($lender);
     $lender_invite->setEmail($email);
     $lender_invite->isInvited(true);
     $success = $lender_invite->save();
     if ($success) {
         $this->lenderMailer->sendLenderInvite($lender, $lender_invite, $subject, $custom_message);
     }
     return $lender_invite;
 }