Crunz\Mailer::send PHP Method

send() public method

Send an email
public send ( string $subject, string $message ) : boolean
$subject string
$message string
return boolean
    public function send($subject, $message)
    {
        $this->getMailer()->send($this->getMessage($subject, $message));
    }

Usage Example

Beispiel #1
0
 /**
  * Determine the type of the output
  *
  * @param  string $buffer
  *
  * @return Boolean
  */
 public function catchErrors($buffer)
 {
     if (!is_null(error_get_last())) {
         $this->logger->error($buffer);
         // Send error as email as configured
         if ($this->config('email_errors')) {
             $this->mailer->send('Crunz: reporting PHP Fatal error', $buffer);
         }
     }
     return $buffer;
 }
All Usage Examples Of Crunz\Mailer::send