Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Feedback email

Status
Not open for further replies.

wallm

Programmer
Apr 4, 2005
69
GB
I'm using Visual Web Developer.
I've created a page email.aspx which uses a codebehind file and is to function as a feedback form.
Let's say my feedback form looks like this in email.aspx

<form runat="server">

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button" />
</form>


How can I access what the visitor enters and send myself the email?

The code I've got so far for the code behind file is:

Partial Class email
Inherits System.Web.UI.Page

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

End Sub
End Class



Any help on what I need to import etc would be appreciated.
thanks.
 
Check out the System.Net.Mail.MailMessage class in your help files.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top