I am following a book and I used this code and get the error in the subject line.

<%@ Page Language="VB" Debug="True" %>
<html>
<head>
<title>Untitled Document</title>
<body>
<%
Dim EMailFrom As String = "bill@edgequest.com"
Dim EMailTo As String = "grantb@omnigraphix.com"
Dim EMailSubject As String = "Important Message!"
Dim EMailBody As String = "Thanks for reading this " & "message but I must admit, I lied. There's " & "nothing important about this message at all."
Dim MySmtpClient As New System.Net.Mail.StmpClient("localhost")
MyStmpClient.Send(EmailFrom, EmailTo, EmailSubject, EmailBody)
%>
</body>
</html>

What am I doing wrong?
posted by:
Grant
Florida

Recent topics in "ASP.net web development"

Topic Author Replies Last Post
graphics in asp Toby 0 August 9, 2008
Does anybody know? Grant 2 January 2, 2008
How to create asp.net pages dynamically? Grant 1 January 2, 2008
question about isPostBack Eira 3 November 2, 2007