this probably isnt the problem, but i may simplify things..
1st do 1 query: select email,pass from $table_name where user=\"$user\"";
2nd: from php.net: Subsequent call to mysql_fetch_row() would return the next row in the result set, or FALSE if there are no more rows.
so so $something = mysql_fetch_row(mysql_query(...));
then $something[0] and $something[1] or $something['email'] and $something['pass'] are the data you want.
Hope that makes sense to you.
-dan
$tempemail = mysql_fetch_row(mysql_query("select email from $table_name where user=\"$user\""));
$temppass = mysql_fetch_row(mysql_query("select pass from $table_name where user=\"$user\""));
$message = "This is Breekan with the information you requested. User: $user Password: $temppass[0]";
$headers = "From: " . $name . "<" . $myemail . ">\r\n";
correct?