src/HtmlBuilder.php
public function mailto(string $email, ?string $title = null, array $attributes = [], bool $escape = true): Htmlable
    {
        $email = $this->email($email);

        $title = $title ?: $email;

        if ($escape) {
            $title = $this->entities($title);
        }

        $email = $this->obfuscate('mailto:').$email;

        return $this->toHtmlString('<a href="'.$email.'"'.$this->attributes($attributes).'>'.$title.'</a>');
    }
public function mailto(string $email, ?string $title = null, array $attributes = [], bool $escape = true): Htmlable
    {
        $email = $this->email($email);

        $title = $title ?: $email;

        if ($escape) {
            $title = $this->entities($title);
        }

        $email = $this->obfuscate('mailto:').$email;

        return $this->toHtmlString('<a href="'.$email.'"'.$this->attributes($attributes).'>'.$title.'</a>');
    }
Generate a HTML link to an email address.

@param  string  $email
@param  string|null  $title
@param  array   $attributes
@param  bool  $escape

@return \Illuminate\Contracts\Support\Htmlable