如何编码自动生成密码程序并将生成的密码发送到新加入的用户的电子邮件ID? [英] How to code auto generate password programe and send generated password to newly joined user's email id?
本文介绍了如何编码自动生成密码程序并将生成的密码发送到新加入的用户的电子邮件ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何编写代码以自动生成密码程序并将生成的密码发送给新加入的用户的电子邮件ID?
How to code auto generate password programe and send generated password to newly joined user''s email id?
推荐答案
Internet上有很多建议生成密码.只需使用一种生成随机数的方法,然后使用这些值从一组字符中选择字符即可创建初始密码.至于发送给用户,您可以使用 SmtpClient
[^ ] class.
There are plenty of suggestions on the internet for generating passwords. Just use one of the methods for generating random numbers, and use the values to select characters from a set to make an initial password. As for sending this to the user, you can use the SmtpClient
[^] class.
在Google上搜索以下内容:
Search for this on Google :
"generating random passwords C#"
,然后用双手和所有手指抓住前10个结果.有很多方法可以完成此操作,对于电子邮件发送,可以在Google上以完全相同的方式搜索电子邮件C#",然后将自己投入前10个结果左右.
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.
这篇关于如何编码自动生成密码程序并将生成的密码发送到新加入的用户的电子邮件ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文