as the title say, I would like to know how to use _user_mail_notify
with a specified language.
According to the documentation the third parameter should be the one that override user_preferred_language() but when I specify it the language used is always the one returned by language_default().
My code is pretty simple:
_user_mail_notify($op, $account, $mail_lang);
Where:
$op
is 'register_admin_created'
as the account is created programmatically.
$account
is the return value of user_save
$mail_lang
is an object selected from the array returned by language_list('enabled') (as I understood it should be).
I don't know if I'm using it wrong or there is a bug in the function, anyone used it with a custom language and can help me understand?
Thanks you.