Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // public static function sendConfirmEmail($user)
- // {
- // $email = EmailFactory::create(EmailType::ACTIVATE_APP, $user->id, $user->id);
- // if ($email) {
- // $isSend = $email->send(array('model' => $user, 'title' => $user->profile->title));
- // if ($isSend) {
- // $email->is_send = Email::EMAIL_SENT;
- // $email->save();
- // return true;
- // }
- // }
- // return false;
- // }
- //
- // public static function sendWelcomeEmail($user) {
- // $sell = [
- // 'title' => 'Tap "Sell" button',
- // 'pos'=>'bottom right'
- // ];
- // $email = EmailFactory::create(EmailType::WELCOME, $user->id, $user->id);
- // if($email){
- // $isSend = $email->mSend(array('profile' => $user->profile, 'sell' => $sell));
- // if($isSend){
- // $email->is_send = Email::EMAIL_SENT;
- // $email->save();
- // }
- // }
- // }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement