本文介绍了发送自动生成的链接到电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

我想发送带有自动生成的链接的邮件.
当用户单击此链接时,他/她将自动重定向到我的主页,而无需用户名/密码..

示例忘记密码链接


谢谢
Chirag

Hi Friends,

I want to send a mail with automatic generated link.
when user click this link he/she will automatically redirect to my homepage without username/password..

Example Forgot Password Link


Thanks
Chirag

推荐答案

Dim mailMessage As System.Net.Mail.MailMessage = New System.Net.Mail.MailMessage()
mailMessage.From = New System.Net.Mail.MailAddress("[email protected]")
mailMessage.To.Add(New System.Net.Mail.MailAddress("[email protected]"))
mailMessage.Subject = "Test"
mailMessage.Body = "<a href=""www.codeproject.com"">Codeproject</a>"
mailMessage.IsBodyHtml = True
Dim smtpClient As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient()
smtpClient.Host = "xx.xx.com"
smtpClient.Send(mailMessage)


这篇关于发送自动生成的链接到电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 20:21