简体   繁体   中英

Passing parameters via email

Many applications use emails for accounts verification and other different purposes.You can see that those emails contain Buttons that redirect you to a certain page with a url parameters(ex:http://users/1234....).

How can I do the same functionality if I am constructing the email programmatically using MailMessage utility.

Basicly the Confirmation you talking about is a process. So, for example,

  • create a user with a guid and a ConfirmationDate in a database table.
  • sent a mail with a link and the guid
  • if the user clicks the link you set the ConfirmationDate
  • if the user has a ConfirmationDate (not null) the user has confirmed

将mail.IsBodyHtml设置为true并使用HTML。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM