public static function raw($to, $subject, $data, array $headers = [])
    {
        if (!is_array($to)) {
            $to = [$to];
        }

        $message = new Message();

        $message->toList($to)->subject($subject)->setMessage($data);

        foreach ($headers as $key => $value) {
            $message->addHeader($key, $value);
        }

        return static::$instance->send($message);
    }
public static function raw($to, $subject, $data, array $headers = [])
    {
        if (!is_array($to)) {
            $to = [$to];
        }

        $message = new Message();

        $message->toList($to)->subject($subject)->setMessage($data);

        foreach ($headers as $key => $value) {
            $message->addHeader($key, $value);
        }

        return static::$instance->send($message);
    }
public static function raw ( $ to , $ subject , $ data , array $ headers = [ ] ) { if ( ! is_array ( $ to ) ) { $ to = [ $ to ] ; } $ message = new Message ( ) ; $ message -> toList ( $ to ) -> subject ( $ subject ) -> setMessage ( $ data ) ; foreach ( $ headers as $ key => $ value ) { $ message -> addHeader ( $ key , $ value ) ; } return static :: $ instance -> send ( $ message ) ; }
Send mail similar to the PHP mail function

@param  string|array $to
@param  string       $subject
@param  string       $data
@param  array        $headers
@return mixed
Send mail similar to the PHP mail function