Login   Register  
PHP Classes
elePHPant
Icontem

File: _mail.class.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Lennart Pedersen  >  MaskMail  >  _mail.class.php  >  Download  
File: _mail.class.php
Role: ???
Content type: text/plain
Description: Class
Class: MaskMail
Hide you email from crawlers
Author: By
Last change:
Date: 12 years ago
Size: 528 bytes
 

Contents

Class file image Download
<?
class XMail
{
	var $maskedMailAddress = "";
	var $MailAddress = "";

	function XMail($mailAddress)
	{
		$this->maskedMailAddress = $mailAddress;
	}

	function evaluateMail()
	{
		$strNewMail = $this->maskedMailAddress;
		$strNewMail = str_replace(" at ","@",$strNewMail);
		$strNewMail = str_replace(" dot ",".",$strNewMail);
		$this->MailAddress = $strNewMail;
	}

	function activateMail()
	{
		echo "<script>";
			echo "location = 'mailto:" . $this->MailAddress . "';";
		echo "</script>";
	}
}
?>