<?
$button_txt = "Send mail";
$receipient = "Company";
$mailto = "mail@example.com";
$subject = 'Hello!';
$body = "Message";
$mailto_span = JHtml::_('email.cloak', $receipient . '%3C' . $mailto . '?subject=' . $subject . '&body=' . $body, 1, $button_txt, 0);
// Output (approximately):
//<a href="mailto:Company>mail@example.com?subject=Hello!&body=Message">Send mail</a>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.