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:

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

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

$attributes = array('title' => 'Mail me');
echo mailto('[email protected]', 'Contact Me', $attributes);
doc_CodeIgniter
2016-10-15 16:32:29
Comments
Leave a Comment

Please login to continue.