public function send($to, $subject, $message, $options)
    {
        if (!is_array($options)) {
            $options = array('from' => (string) $options);
        }

        settype($to, 'array');

        $result = null;
        $this->hook->attach('mail.send', $to, $subject, $message, $options, $result);

        if (isset($result)) {
            return $result;
        }

        return $this->mail($to, $subject, $message, $options);
    }
public function send($to, $subject, $message, $options)
    {
        if (!is_array($options)) {
            $options = array('from' => (string) $options);
        }

        settype($to, 'array');

        $result = null;
        $this->hook->attach('mail.send', $to, $subject, $message, $options, $result);

        if (isset($result)) {
            return $result;
        }

        return $this->mail($to, $subject, $message, $options);
    }
public function send ( $ to , $ subject , $ message , $ options ) { if ( ! is_array ( $ options ) ) { $ options = array ( 'from' => ( string ) $ options ) ; } settype ( $ to , 'array' ) ; $ result = null ; $ this -> hook -> attach ( 'mail.send' , $ to , $ subject , $ message , $ options , $ result ) ; if ( isset ( $ result ) ) { return $ result ; } return $ this -> mail ( $ to , $ subject , $ message , $ options ) ; }
Sends an e-mail
@param string|array $to
@param string $subject
@param string $message
@param array|string $options
@return mixed
Sends an e - mail