Examples » Spam-protected and hack-protected email functions

This example demonstrates some of Email plugin features.

Spam-protected email address: . Look at the page source to see the hidden email address.

Advanced information in email message body:

[email body]


User Info---------------------------------------------
HTTP_USER_AGENT      : CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
HTTP_ACCEPT_LANGUAGE : en-us,en;q=0.5
REMOTE_ADDR          : 38.103.63.17
REMOTE_ADDR(Domain)  : 38.103.63.17
FORM URL             : 
Form Fields-------------------------------------------
Form page referer :  
Color : Black 
------------------------------------------------------

Plugin email v.1.0.0 | Inc v.1.0.0 | Settings: example,email | ob is enabled | Executed in 0.02 s. | Hide source
<?php define('INC','example,email'); include_once '../inc/inc.php';
$example_plugin = 'email';

$title = 'Spam-protected and hack-protected email functions';

inc();?>

<p>This example demonstrates some of Email plugin features.</p>

<p>Spam-protected email address: <?=email_js_link('user@domain.com')?>.
Look at the page source to see the hidden email address.</p>

<p>Advanced information in email message body:</p>

<pre>
[email body]
<? $a = array(
    'Form page referer' => $_SERVER['HTTP_REFERER'],
    'Color' => 'Black'
);
echo email_user_info($a);
?>
</pre>