mailto()

mailto($email, $title = '', $attributes = '')

Parameters:
  • $email (string) – E-mail address
  • $title (string) – Anchor title
  • $attributes (mixed) – HTML attributes
Returns:

A “mail to” hyperlink

Return type:

string

Creates a standard HTML e-mail link. Usage example:

1
echo mailto('[email protected]', 'Click Here to Contact Me');

As with the anchor() tab above, you can set attributes using the third parameter:

1
2
$attributes = array('title' => 'Mail me');
echo mailto('[email protected]', 'Contact Me', $attributes);
doc_CodeIgniter
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.