API

Download

Download Version 1.2.1

We offer a programming interface (API) over HTTPS, which allows you to encrypt email addresses on the fly using PHP. Your server must support PHP and cURL.

Please read our Privacy Policy thoroughly before using the Email Encoder API.
You may need to make adjustments to your privacy policy.


Integration & Example

Download the PHP Class and upload the file emailEncoder.class.php to your webspace.

You may have to adjust the path settings if the class is not in the same folder as the file where the Email Encoder should be used.

<?php
require_once "emailEncoder.class.php";

$emailEncoder = new emailEncoder();
$emailEncoder->setEmail("email@example.com");
echo $emailEncoder->encode();
?>

Result:

Options

You can set different options and combine them together. Insert these before $emailEncoder->encode() and replace the value.

Linktext

$emailEncoder->setLinktext("Linktext");

Result:

ID attribute

$emailEncoder->setIdAttr("id-attr");

Result:

CSS class(es)

$emailEncoder->setCssClass("first-css-class second-css-class");

Result:

Inline style

$emailEncoder->setInlineStyle("color:red;");

Result: