How do I get the user's email in the user profile template? I am trying to customize the user-profile.tpl.php file.

I can access the all custom fields using $user_profile['field_fieldname'], and I can even access the user picture using $user_profile['user_picture'], but I don't know how to get the user email.
I solved this by following way.

$account = menu_get_object('user');
$mail = $account-&gt;mail;