i have added a contact form all the details are correct as far as i no please can someone check over them and help me fix this this is the web address to the page where the error is
http://www.onlinegamesleague.co.uk/j...o/contact.aspx
this is my source code
Expand|Select|Wrap|Line Numbers
- <%@ Page Title="Jake Hathaway's Portfolio l Contact Me" MasterPageFile="MasterPage.master"
- AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
- <% @Import Namespace="System.Web.Mail" %>
- <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
- <link rel="stylesheet" href="css/global.css">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
- <script language="vb" runat="server">
- Sub btnSendFeedback_Click(ByVal sender As Object, ByVal e As EventArgs)
- 'Create an instance of the MailMessage class
- Dim objMM As New MailMessage()
- 'Set the properties - send the email to the person who filled out the
- 'feedback form.
- objMM.To = "hathawayjake5@googlemail.com"
- objMM.From = txtEmail.Text
- 'If you want to CC this email to someone else, uncomment the line below
- 'objMM.Cc = "someone@someaddress.com"
- 'If you want to BCC this email to someone else, uncomment the line below
- 'objMM.Bcc = "someone@someaddress.com"
- 'Send the email in text format
- objMM.BodyFormat = MailFormat.Text
- '(to send HTML format, change MailFormat.Text to MailFormat.Html)
- 'Set the priority - options are High, Low, and Normal
- objMM.Priority = MailPriority.Normal
- 'Set the subject
- objMM.Subject = "4GuysFromRolla.com - Feedback"
- 'Set the body
- objMM.Body = "At " + DateTime.Now + " feedback was sent from an ASP.NET " & _
- "Web page. Below you will find the feedback message " & _
- "send by " & txtName.Text & "." & vbCrLf & vbCrLf & _
- "---------------------------------------" & vbCrLf & vbCrLf & _
- txtMessage.Text & vbCrLf
- 'Specify to use the default Smtp Server
- SmtpMail.SmtpServer = "smtp.gmail.com"
- 'Now, to send the message, use the Send method of the SmtpMail class
- SmtpMail.Send(objMM)
- panelSendEmail.Visible = False
- panelMailSent.Visible = True
- End Sub
- </script>
- </asp:Content>
- <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
- <div class="contactback"><div class="contactdetailstext"><span style="font-family:Verdana;">Contact Details:</span></div><div class="contactdetailstext2"><span style=" font-weight:bold;">Address:</span><br />44 st mellion crescent<br />wrexham<br />ll13 9gz<br /><br /><span style="font-weight:bold;">Mobile:</span> 07824322300<br /><br /><span style="font-weight:bold;">Email Address:</span><br /><a href="mailto:hathawayjake5@googlemail.com?subject=website"> hathawayjake5@googlemail.com</a><br /><br /><span style="font-weight:bold;"><a href="">Facebook</a><br /><a href="">Twitter</a></span></div></div>
- <asp:panel id="panelSendEmail" runat="server">
- <form id="Form1" runat="server">
- <h2>We are interested in your feedback! Please enter the following
- requested information below to send us your comments.</h2>
- <b>Your Name:</b>
- <asp:textbox id="txtName" runat="server" />
- <br>
- <b>Your Email Address:</b>
- <asp:textbox id="txtEmail" runat="server" />
- <p>
- <b>Your Message:</b><br>
- <asp:textbox id="txtMessage" TextMode="MultiLine"
- Columns="40" Rows="10" runat="server" />
- <p>
- <asp:button runat="server" id="btnSendFeedback" Text="Send Feedback!"
- OnClick="btnSendFeedback_Click" />
- </form>
- </asp:panel>
- <asp:panel id="panelMailSent" Visible="False" runat="server">
- An email has been sent to the email address you specified. Thanks!
- </asp:panel>
- </asp:Content>
thanks in advance :)