how do it to email them with there password and username
This is a server-side operation. Please ask the question in the forum for whatever server-side language you use.