$url = strtolower($value);
$url = preg_replace('/[^a-zA-Z0-9,\-\.@\s\/:#]/', '', $url);
$url = '<a href="'. $url .'" target="_blank">Click Me!</a>';
$value = $url;
This works and be carefull because i notice those mails with URLs are ignored by gmail and send to spam, which cause user of...