0

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.

Roger Lipscombe
  • 89,048
  • 55
  • 235
  • 380
Sleiman Jneidi
  • 22,907
  • 14
  • 56
  • 77

2 Answers2

1

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
dknaack
  • 60,192
  • 27
  • 155
  • 202
0

Set mail.IsBodyHtml to true and use HTML.

tzerb
  • 1,433
  • 1
  • 16
  • 35