You'd give the link in the email an id number, so the link would be something like
http://yourdomain.com/afunnycard.php...d=sdsr3wfdscsd
Once that's done and clicked, you'll need to get the ?userid=sdsr3wfdscsd from the url on the afunnycard.php page. To do that, use
$_GET['userid'];
Then just write that to a file by doing something similar to
PHP Code:
<?php
$details = $_GET['userid']." Viewed the card ". date ('l dS of F Y h:i:s A') ."/n";
$fileopen = fopen("cardlog.txt","a");
fwrite($fileopen, $userid);
fclose($fileopen);
?>