-3

问题:-表包括CompanyID:,,,,,CompanyNameCompanyPwdCompanyLogoEmail

我需要ForgotYourPassword Code

使用 Vb.net 向公司电子邮件发送电子邮件。

4

1 回答 1

1

您应该有一个安全问题和答案栏。网上有样品流通,你要做的就是SEARCH。看这个例子:(它会向用户发送一封电子邮件

Dim SmtpServer As New SmtpClient()
Dim mail As New MailMessage()
SmtpServer.Credentials = New Net.NetworkCredential("username@gmail.com", "password")
SmtpServer.Port = 587
SmtpServer.Host = "smtp.gmail.com"
mail = New MailMessage()
mail.From = New MailAddress("YOURusername@gmail.com")
mail.To.Add("TOADDRESS")
mail.Subject = "Test Mail"
mail.Body = "This is for testing SMTP mail from GMAIL"
SmtpServer.Send(mail)
MsgBox("mail send")

但在执行上述操作之前,您应该从表中获取密码:

SELECT CompanyPwd FROM tableName WHERE Email = '';
于 2012-04-08T01:08:57.800 回答