I am trying to code an event in a vb.net webform to enable two client users to email each other.
The Code I have below is wrong and I think the problem lies in the SmtpServer bit.
Can someone advise me on how to do this?

Thanks alot

Code:
        Dim objEmail As New MailMessage()
        objEmail.To = "[email protected]"
        objEmail.From = "[email protected]"
        
        objEmail.Subject = "Test Email"
        objEmail.Body = "Test Email 2"
        SmtpMail.SmtpServer = "sendmail.mywebsitehost.com"

        Try
            SmtpMail.Send(objEmail)
            Response.Write("Your E-mail has been sent sucessfully -" & _
                           "Thank You")

        Catch exc As Exception
            Response.Write("Send failure: " + exc.ToString())
        End Try