protected function makeMailtoString($user, $domain, $subject = '') { $target = 'mailto:' . $user . '@' . $domain; if ($subject) { $target .= '?subject=' . Convert::raw2mailto($subject); } $target = str_replace(".", "&x2e;", $target); $target = str_replace("@", "&x40;", $target); return $target; }