public function send() { $mail = $this; $data = $mail->data; $auth = $mail->auth; AuthUtil::refresh($auth); $user_mail = AuthUtil::getTblUserUserMail($auth); $from_mail = self::FROM_ADDRESS; $subject = '[' . SERVICE_NAME . ']' . __('Inquiry Confirmation'); $mailCtp = self::MAIL_CTP; $layoutCtp = self::LAYOUT_CTP; $email = $mail->getCakeEmail(); $email->from($from_mail); $email->to($user_mail); $email->subject($subject); $email->emailFormat('text'); $email->template($mailCtp, $layoutCtp); $email->viewVars(compact('data', 'auth')); return $email->send(); }
public function send() { $mail = $this; $data = $mail->data; $auth = $mail->auth; $adminMails = $mail->adminMails; $dataTblSellGeneralCar = $this->dataTblSellGeneralCar; AuthUtil::refresh($auth); $from_mail = self::FROM_ADDRESS; $subject = '[' . SERVICE_NAME . ']' . __('Car Sell Inquiry'); $mailCtp = self::MAIL_CTP; $layoutCtp = self::LAYOUT_CTP; $email = $mail->getCakeEmail(); $email->from($from_mail); $email->to($adminMails); $email->subject($subject); $email->emailFormat('text'); $email->template($mailCtp, $layoutCtp); $email->viewVars(compact('data', 'auth', 'dataTblSellGeneralCar')); return $email->send(); }
public function send() { $mail = $this; $data = $mail->data; $auth = $mail->auth; $tblUser = $mail->TblUser; AuthUtil::refresh($auth); $title = Hash::get($data, 'UserContact.title'); $from_mail = self::FROM_ADDRESS; $admin_mail = self::getAdminMail($tblUser); $subject = '[' . SERVICE_NAME . '(' . __('User Contact') . ')]' . $title; $mailCtp = self::MAIL_CTP; $layoutCtp = self::LAYOUT_CTP; $email = $mail->getCakeEmail(); $email->from($from_mail); $email->to($admin_mail); $email->subject($subject); $email->emailFormat('text'); $email->template($mailCtp, $layoutCtp); $email->viewVars(compact('data', 'auth')); return $email->send(); }