Hi, having a lot of trouble trying to develop code for VB.NET for what I need to do. I'm a real newbie to .NET but do have a lot of scripting background. I've been searching the web and the forums for about a week now, and have only came up with the following.
I need to send an email via smtp with my infopath form data, in either clear text or an embedded form format, (attachment will be my last resort)
Data gets sumitted to a SQL DB
How do I get my data into an snmp email ? Does anyone have any code that will do this ?
Dim client As New SmtpClient("server.test.com")
Dim toAddr As New MailAddress([email protected])
Dim fromAddr As New MailAddress("[email protected]")
Dim message As New MailMessage(fromAddr, toAddr)
Message.IsBodyHtml = True
Message.Subject = "This is a Test"
Message.Body = "<html><body><b>This is an </b> <font color=red>HTML Message</font></body></html> "