TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Shang Fields
NA
1
0
How do I write this for C#?
Aug 3 2007 10:37 PM
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
Reply
Answers (
1
)
faulting application
Object reference not set to an instance of an object