Ejemplo n.º 1
0
 private function send_mail($receive, $from_address, $header, $content)
 {
     if ($this->smtp_sockopen()) {
         $receive = self::act_address($receive);
         if ($this->smtp_send($this->host, $from_address, $receive, $header, $content)) {
             if (config('log.is_record_mail', 'mail')) {
                 logger::mail($receive);
             }
             return true;
         }
     }
     array_push(self::$exception, 'cannot send email to ' . $receive);
 }