Add mail to user register with user_external_login_register I'm creating a module that should add an external authentication server, and I'm using user_external_login_register function.

The problem is that the user created with this functions does not have a "mail" attribute, and also if I try to user_load it, the mail attribute is not present.
Why?

Is there a way to add it or I've to create user in the ordinary way, by code?

I could add it on hook_user_insert, but the mail address is a response from a web services, called before the hook.
The function user_save is called in user_external_login_register, so you could just use hook_user_insert to add the info you need.