Why wont this work?
<?
$message ="$text1$code \n \n $standard_invitation1 $userdata[usr]. \n\n$name \n$descr \n$standard_invitation2: $code . \n http://www.stig.fo$PHP_SELF?navbar=join&teamcode=$code&do=userjoin $standard_signature";
$sender="From:Stig<info@stig.fo>";
$message = wordwrap($message, 70);
mail($to,$subject,$message,$sender);
?>