It’s always a pleasure to help out enthusiastic moodlers! It might take you a while to get used to it, but you will get a hang of it with experience.
As I mentioned earlier, there is no such functionality to send automated emails to students when they are manually enrolled into courses. This will have to be done with coding.
There is however, a plugin, named quickmail which shows the list of all students enrolled in a course and allows admins/teachers to send emails to students upon registration. You may customize the quickmail code to add additional fields such as username and password.
However, this too is a manual process. I’m sharing the link of quickmail below.