How do I send an email containing the user password?
First thing, you cannot send the password. You can only send a reset/one-time-login link. Passwords in Drupal are a one-way street, they can never be retrieved. To send the link is pretty easy. Use _user_mail_notify()

_user_mail_notify('password_reset', $account);