Sending passwords in plain text along with other login settings is not very secure. When in a pinch, your solution to send it via a separate email is a better approach. (From a security point of view, it is normally suggested to use a different channel to send the password.)