Nowhere in this code are you actually sending the email. That's a function of the
SmtpClient
object.
Here's info on the SmtpClient.Send(MailMessage) method.[
^]
To send the message from your code, you'd need the line
smtpclient.Send(message)
. I don't know if there's any further configuration you'll need to do on your SmtpClient object before you do this, but it'll get you headed in the right direction.