Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
How do I write this for C#?
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Shang Fields
17y
1.9k
1
Reply
I have been at this all day. Trying to write it to work for C# feedback page.
Protected Sub Wizard1_FinishButtonClick(object sender, WizardNavigationEventArgs e)
SendMail(txtEmail.Text, txtComments.Text)
End Sub
Private Sub Sendmail(ByVal from As String, ByVal body As String)
Dim mailServerName As String = "company.company.com"
Dim message As MailMessage = New MailMessage(from, "
[email protected]
")
Dim mailClient As SmtpClient = New SmtpClient
mailClient.Host = mailServerName
mailClient.Send(message)
message.Dispose
End Sub
End Class
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
faulting application
Object reference not set to an instance of an object