Search for this on Google :
"generating random passwords C#"
and just grab the first 10 results with both hands and all fingers. There are a ton of ways to do that and as for e-mailing, search for "e-mail C#" in exactly the same way on Google and throw yourself on the first 10 results or so.