如何向新用户发送用户名和密码?

问题描述:

我写了一个用于在用户提交表单后发送电子邮件的代码....但是在那个邮件而不是数据中我想向用户发送 用户访问密码未来的使用......



为此,我可以为一些密码维护新的数据库表吗?

如果是,那么我该如何更新该数据库中的自动密码??

如果没有,那么提供替代方式...



在此先感谢....

I write one code for sending email after user submit the form....But in that mail instead of data i want to send user access password to user for future use...

For this can i maintain new database table only for some passwords??
if yes then how can i update automatic passwords in that data base??
if no then provide alternative way...

Thanks in advance....

您希望在确认用户已连接到您的服务的电子邮件服务中将用户的凭据详细信息发送给他;注册完成。



您应该知道,主要是Web应用程序以加密格式保存密码,因此人们很难复制并使用该密码进行任何非法工作。一旦保存在数据库中,您将需要解密该密码。



因此,在将数据保存在数据库中之前,将密码保存在电子邮件中使用的变量中并从中删除一旦发送电子邮件就会记忆,剩下的过程就像它必须的那样;密码保持加密状态。
You want to send the user's credential details to him in the email service that confirms that the user has connected to your service; registration complete.

You should know, that mostly the web applications save the password in an encrypted format so that it is hard for humans to copy and use that password for any illegal work. You will be needing to decrypt that password once saved in the Database.

So a turn around is that, before saving his details in side the database, you save the password in the variable that is used in the email and gets deleted from the memory as soon as the email is sent and the remaining process just works as it has to be; password remain encrypted.