I have included a mailing feature in my latest project and seem to have come across a pretty big problem. Durring testing, I tried to send an email from a Windows 98 machine and recieved an error telling me that the feature is only available in the later versions of the Windows operating system.
Below is a sample of the code I was trying to use. Does anyone know what I have to install on the client machine for this to work, or is there another way of sending an email through an SMTP server?
VB Code:
Dim Mail As New MailMessage
Try
Mail.From = MailAddress
Mail.Subject = ComName
Mail.BodyFormat = MailFormat.Text
Mail.Body = BuildBody()
SmtpMail.SmtpServer = MailServer
SmtpMail.Send(Mail)
Catch ex As Web.HttpException
MsgBox("Error: Check Settings.")
Dim request As frmSettings = New frmSettings
request.ShowDialog()
request.Select()
LoadSettings()
Exit Sub
End Try
Thanks for any help you all can offer,
Squirrelly1