Login   Register  
PHP Classes
elePHPant
Icontem

Class: Mailto Encoder

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Konstantinos Dafalias  >  Mailto Encoder  >  Download .tar.gz .zip  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Mailto Encoder
Base name: cmailto_encoder
Description: Encode email address links with character entities
Related classes: , , , , , , ,
Version: -
PHP version: -
License: GNU Lesser General Public License (LGPL)
All time users: 941 users
All time rank: 3092
Week users: 0 users
Week rank: 2507
Picture of Konstantinos Dafalias
Author: Konstantinos Dafalias <e-mail contact>
Packages: 2 Browse this author's classes Browse this author's classes
Country: Austria Austria - PHP jobs in Austria
Age: 41
All time rank: 143114 in Austria Austria
Week rank: 2261 Down13 Up in Austria Austria


  Detailed description  
This class creates a mailto: links for the given email address using equivalent character entities that replace the characters of the URLs in the link URL attributes.

This is meant to prevent that e-mail harvesting robots used by spammers to collect e-mail addresses find the e-mail addresses when they are looking for mailto: or @ text, without compromising the ability of the browsers to determine the link URLs correctly. For instance, @ becomes &#64; .

Despite the class does not provide a solution against e-mail harvesting robots that are able to decode URLs like this, the class still provides a solution with no disadvantages for the reader, as no Javascript is needed, the mailto: link is still usable, and it can still be copied from the Web pages to be pasted anywhere else.

The class also provide optional support for specifying the mailto: link text, CSS class for rendering the link, and additional parameters for predefining the the mailto: link subject and body text.

 

  Groups  
Group folder image HTML HTML generation and processing View top rated classes
Group folder image Email Email sending and receiving View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes

  Rate classes User ratings   Applications   Files Files  

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Sufficient (62.5%)
Sufficient (66.7%)
-
Sufficient (70.8%)
-
-
Not sure (45.0%)
1776
Month:
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file mailto_encoder.php Class The class file
Plain text file mailto_encoder_test.php Example Sample script

Download all files: cmailto_encoder.tar.gz cmailto_encoder.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.