K
karim
Hello All, I have this code:
Dim mail As New MailMessage(txtTo.Text, txtFrom.Text, txtSubject.Text,
txtBody.Text)
Dim client As New SmtpClient(txtSMTP.Text)
If client.Credentials = CredentialCache.DefaultNetworkCredentials Then
client.Send(mail)
MessageBox.Show("Message Sent", "Information")
Me.Close()
Else
MessageBox.Show("Please fill out all places")
End If
and I have the blue error line under the statement after "If". does anyone
see what I'm missing?
Thanks for all your help.
Dim mail As New MailMessage(txtTo.Text, txtFrom.Text, txtSubject.Text,
txtBody.Text)
Dim client As New SmtpClient(txtSMTP.Text)
If client.Credentials = CredentialCache.DefaultNetworkCredentials Then
client.Send(mail)
MessageBox.Show("Message Sent", "Information")
Me.Close()
Else
MessageBox.Show("Please fill out all places")
End If
and I have the blue error line under the statement after "If". does anyone
see what I'm missing?
Thanks for all your help.