parser

Encrypting e-mail to be output into mailto-links

Author: [January 17, 2006]
Version: 1.05
Tags: E-mail

^mailto:print[email][type]
^mailto:print[email][title][type]
^mailto:print[email][parameters][type]

This method encrypts the received e-mail details. The encryption type will vary.

email — the email address to be encrypted
type —type of result: html [by default] or xml
title or $parameters.title — the link’s title
$parameters.subject — the e-mail’s subject (?subject=...)
$parameters.attributes — extra attributes for link tag <a />

If type is xml, the method will return this string:
<email-crypted>em'+'ail</email-crypted>

For type html the returned string will be:
<script type="text/javascript">document.write('em'+'ail')</script>


^mailto:crypt[text][type]

This method encrypts all e-mail links in the received text.

Example of use in @postprocess[]:

@postprocess[body]
^mailto:crypt[$body][html]

Note: Only links of type <a href="..."...>...</a> will be processed.

Download:

mailto_en.zip (05.06.2006  927 bytes)
The archive with class