Just as Joe said, its only used for mail, is actually defined on takeeditcp
Code:
$urladd.= "&mailsent=1";
Global defines are normally all on config which is included on bittorrent.php making that define usable on any script that includes bittorrent.php, or you define the global on the file only if its only used on that one file.