Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0103: The name 'smtp' does not exist in the current context

Source Error:


Line 85:        // body += "Question: \n" + Comments.Text + "\n";
Line 86:         // smtp settings
Line 87:         smtp  = new System.Net.Mail.SmtpClient();
Line 88:         {
Line 89:             smtp.Host = "smtp.gmail.com";

Source File: d:\inetpub\vhosts\sparkvfx.com\dwarkamarket.com\SendMail.aspx.cs    Line: 87






Version Information: Microsoft .NET Framework Version:2.0.50727.9174; ASP.NET Version:2.0.50727.9175