public function mailto($text, $email = null, $options = [], $encoding = null)
    {
        $this->ensureTranslated($text);
        $this->ensureTranslated($email);
        return $this->proxyWithCharset(__FUNCTION__, [$text, $email, $options, $encoding]);
    }
public function mailto($text, $email = null, $options = [], $encoding = null)
    {
        $this->ensureTranslated($text);
        $this->ensureTranslated($email);
        return $this->proxyWithCharset(__FUNCTION__, [$text, $email, $options, $encoding]);
    }
public function mailto ( $ text , $ email = null , $ options = [ ] , $ encoding = null ) { $ this -> ensureTranslated ( $ text ) ; $ this -> ensureTranslated ( $ email ) ; return $ this -> proxyWithCharset ( __FUNCTION__ , [ $ text , $ email , $ options , $ encoding ] ) ; }
Generates a mailto hyperlink.
@param string $text link body. It will NOT be HTML-encoded. Therefore you can pass in HTML code
such as an image tag. If this is coming from end users, you should consider [[encode()]]
it to prevent XSS attacks.
@param string $email email address. If this is null, the first parameter (link body) will be treated
as the email address and used.
@param array  $options the tag options in terms of name-value pairs. These will be rendered as
the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
If a value is null, the corresponding attribute will not be rendered.
See [[renderTagAttributes()]] for details on how attributes are being rendered.
@param string $encoding
@return string the generated mailto link
@see Html::mailto()
Generates a mailto hyperlink .