<?
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>";
}
}
?>
|