Advertisement
Guest User

Untitled

a guest
Nov 9th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. // public static function sendConfirmEmail($user)
  2. // {
  3. // $email = EmailFactory::create(EmailType::ACTIVATE_APP, $user->id, $user->id);
  4. // if ($email) {
  5. // $isSend = $email->send(array('model' => $user, 'title' => $user->profile->title));
  6. // if ($isSend) {
  7. // $email->is_send = Email::EMAIL_SENT;
  8. // $email->save();
  9. // return true;
  10. // }
  11. // }
  12. // return false;
  13. // }
  14. //
  15. // public static function sendWelcomeEmail($user) {
  16. // $sell = [
  17. // 'title' => 'Tap "Sell" button',
  18. // 'pos'=>'bottom right'
  19. // ];
  20. // $email = EmailFactory::create(EmailType::WELCOME, $user->id, $user->id);
  21. // if($email){
  22. // $isSend = $email->mSend(array('profile' => $user->profile, 'sell' => $sell));
  23. // if($isSend){
  24. // $email->is_send = Email::EMAIL_SENT;
  25. // $email->save();
  26. // }
  27. // }
  28. // }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement