yes, I believe I have my web.config configured properly. So all I do is this and my smtp settings should be recognized.
Function:
Private Sub SendMail(ByVal from As String, ByVal body As String)
'procedure that passes a string through the configured mail server
Dim message As MailMessage = New MailMessage(txtEmail.Text, "cluce@domain.com", "Technical Support Form", body)
Dim mailClient As SmtpClient = New SmtpClient
mailClient.Send(message)
message.Dispose()
End Sub
'sends string through email
Dim body As String
body = _
"Name: " & txtName.Text.Trim & _
ControlChars.CrLf & _
"Email: " & txtEmail.Text.Trim & _
ControlChars.CrLf & _
ControlChars.CrLf & _
"Comments/requests: " & _
ControlChars.CrLf & _
ControlChars.CrLf & _
txtComments.Text.Trim
SendMail(txtEmail.Text.Trim, body)